Date: 2010-06-06 23:55
<p>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.</p>
+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.</p>
-<p>With upstart, I notice these environment variables are set like
-this for a script started from rcS.d/ (ignoring some irrelevant
-ones):</p>
+<p>With upstart, I notice these environment variables are set when a
+script is started from rcS.d/ (ignoring some irrelevant ones like
+COLUMNS):</p>
<blockquote><pre>
DEFAULT_RUNLEVEL=2