[Pkg-sysvinit-devel] Bug#345741: Please add INIT_PROG env var to
override re-exec'ing from /sbin/init
Dana How
danahow at gmail.com
Tue Jan 3 08:57:41 UTC 2006
Package: sysvinit
Version: 2.86.ds1-6
The "telinit u" feature can be used to re-exec /sbin/init,
useful if you've just rewritten (re-installed) /sbin/init.
However, if /sbin/init is on a read-only filesystem,
or you want to redirect init to be running from a different
filesystem because you need to umount /sbin ,
this feature is inadequate.
The attached patch causes re-exec to execute the binary
specified in the INIT_PROG environment variable if it exists,
otherwise the re-exec will be to the same place the currently
running init came from (which is the current behavior).
The INIT_PROG environment variable can be set using
the telinit -e env feature, which already exists. This is why
the INIT_ prefix was chosen -- otherwise telinit -e will reject
the environment change request.
Thanks,
--
Dana L. How danahow at gmail.com +1 650 804 5991 cell
Sorry about the previous submission in which I forgot
"Package:" and "Version:".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysvinit-2.86-initprog.patch
Type: application/octet-stream
Size: 1146 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20060103/d761271a/sysvinit-2.86-initprog.obj
More information about the Pkg-sysvinit-devel
mailing list