[Pkg-sysvinit-devel] Bug#375274: shutdown -t sec ignored if used with -h

Petter Reinholdtsen pere at hungry.com
Thu Aug 3 10:34:53 UTC 2006


[Dan Jacobson]
> Try
> # shutdown -t 111 -h
> You'll see it certainly does not wait the 111 seconds.

When I try that command, shutdown prints the usage info and complains
that the "time" argument is mandatory.  I assume you didn't tell us
the entire command line you are using.  When I test using 'shutdown -t
111 -h now', the shutdown starts immediately.  Not sure if that is the
correct behavior or not, as init isn't really the program stopping
services.  It is done by init.d scripts called by init.d/rc.

I had a look at the code in init, and if I read it correctly, the '-t
111' argument specify a timeout, aka how long to wait at most for the
children of init to terminate, it does not specify a sleep period.  On
the other hand, in shutdown (when used with -n), it does specify a
sleep period.

So, in short, I am confused what -t is supposed to do with the current
setup, and do not know if anything should be fixed or not.

Friendly,
-- 
Petter Reinholdtsen




More information about the Pkg-sysvinit-devel mailing list