X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/6ff737bc8ac10efd2ab793aa2bdf8ec3f7acd5bb..035c19c46c9f78dc6adf515b8418f9d0b55c709d:/blog/data/2010-06-06-upstart.txt diff --git a/blog/data/2010-06-06-upstart.txt b/blog/data/2010-06-06-upstart.txt index eb12f3b925..57b0260925 100644 --- a/blog/data/2010-06-06-upstart.txt +++ b/blog/data/2010-06-06-upstart.txt @@ -1,17 +1,18 @@ Title: Upstart or sysvinit - as init.d scripts see it -Tags: english, debian, debian edu +Tags: english, debian, bootsystem 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 @@ -36,7 +37,7 @@ runlevel=S
The RUNLEVEL and PREVLEVEL environment variables passed on from -sysvinit is not set by upstart. Not sure if it is intentional or not +sysvinit are not set by upstart. Not sure if it is intentional or not to not be compatible with sysvinit in this regard.
For scripts needing to behave differently when upstart is used,