From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1407 Path: news.gmane.org!not-for-mail From: Mike Buland Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Initial runlevel through kernel parameters Date: Fri, 27 Apr 2007 15:04:32 -0600 Organization: Geek Gene Message-ID: <200704271504.32399.mike@geekgene.com> References: <200704271041.10379.mike@geekgene.com> <20070427203318.6a7a00b1@rafaella.bq.cl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177707881 31156 80.91.229.12 (27 Apr 2007 21:04:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2007 21:04:41 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1644-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Apr 27 23:04:35 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1HhXcJ-0005Cp-0L for gcsg-supervision@gmane.org; Fri, 27 Apr 2007 23:04:35 +0200 Original-Received: (qmail 2572 invoked by uid 76); 27 Apr 2007 21:04:56 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 2566 invoked from network); 27 Apr 2007 21:04:56 -0000 User-Agent: KMail/1.9.6 In-Reply-To: <20070427203318.6a7a00b1@rafaella.bq.cl> Content-Disposition: inline Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1407 Archived-At: That's so simple and obvious, I don't really know what to say. Thank you so much for your prompt and useful help! Thanks, --Mike On Friday 27 April 2007 06:33:18 pm Alejandro Mery wrote: > Am 2007-04-27 schrieb Mike Buland : > > Is this possible? > > in linux to parse the command line is as simple as: > set -- $( cat /proc/cmdline ) > for x; do > case "$x" in > whatever=*) echo "$x" ;; > esac > done > > taking the value from there can be used at /etc/runit/1 to take > decisions, like the initial runlevel. > > Alejandro Mery