[Pkg-sysvinit-devel] Bug#345719: Please remove pointless runlevel
restriction on telinit u
danahow at gmail.com
Tue Jan 3 01:47:01 UTC 2006
Around Feb 1998, the "telinit u" feature was added to the sysvinit package.
This allowed a running /sbin/init to be updated (re-executed after
There are other situations where it would be useful to re-exec /sbin/init .
Midway through a boot from CDROM or other ro media,
or during a shutdown when the entire system is running from removable media,
such as CDROM, USB key, or CF, and we need to continue running reliably
for a short period after the media is removed.
Anyway, "telinit u" could be used in each of these cases,
except it has a check which causes it to do nothing when in runlevels 0 and 6.
I looked around in the source code and the original change logs,
and could find no reason for this restriction,
other than it was consistent with the original purpose of including "telinit u".
I have attached a trivial patch which permits re-exec in runlevels 0 and 6.
This has been tested, on both harddrive and CDROM-based instances.
Dana L. How danahow at gmail.com +1 650 804 5991 cell
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 367 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20060102/bc30be29/sysvinit-2.86-reexec.obj
More information about the Pkg-sysvinit-devel