From: Petter Reinholdtsen Date: Sun, 6 Jun 2010 22:04:09 +0000 (+0000) Subject: Bedre språk. X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/6aa0f2dfc46b413b117a6e7babce1cea2e0cf965 Bedre språk. --- diff --git a/blog/data/2010-06-06-upstart.txt b/blog/data/2010-06-06-upstart.txt index eb12f3b925..88508edd36 100644 --- a/blog/data/2010-06-06-upstart.txt +++ b/blog/data/2010-06-06-upstart.txt @@ -3,15 +3,16 @@ Tags: english, debian, debian edu Date: 2010-06-06 23:55

If Debian is to migrate to upstart on Linux, I expect some init.d -scripts to migrate (some of) their operations to upstart, and will -need a way to behave differently when used with sysvinit and with -upstart. Because of this, I had a look at the environment variables -set when a init.d script is running under upstart, and when it is -not.

+scripts to migrate (some of) their operations to upstart job while +keeping the init.d for hurd and kfreebsd. The packages with such +needs will need a way to get their init.d scripts to behave +differently when used with sysvinit and with upstart. Because of +this, I had a look at the environment variables set when a init.d +script is running under upstart, and when it is not.

-

With upstart, I notice these environment variables are set like -this for a script started from rcS.d/ (ignoring some irrelevant -ones):

+

With upstart, I notice these environment variables are set when a +script is started from rcS.d/ (ignoring some irrelevant ones like +COLUMNS):

 DEFAULT_RUNLEVEL=2