supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Alejandro Mery <amery@opensde.org>
To: supervision@list.skarnet.org
Subject: Re: Initial runlevel through kernel parameters
Date: Fri, 27 Apr 2007 20:33:18 -0400	[thread overview]
Message-ID: <20070427203318.6a7a00b1@rafaella.bq.cl> (raw)
In-Reply-To: <200704271041.10379.mike@geekgene.com>

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

Am 2007-04-27 schrieb Mike Buland <mike@geekgene.com>:
> 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


-- 
GPG/PGP: DA23A600 / 19F7 C16C 14FA B29F 36A6  0588 FE44 6717 DA23 A600

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-04-28  0:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-27 16:41 Mike Buland
2007-04-28  0:33 ` Alejandro Mery [this message]
2007-04-27 21:04   ` Mike Buland
2007-04-27 21:09     ` Alex Efros

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070427203318.6a7a00b1@rafaella.bq.cl \
    --to=amery@opensde.org \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).