LinHES Forums http://forums.linhes.org/ |
|
shutdown from command line always shuts down immediately http://forums.linhes.org/viewtopic.php?f=25&t=22796 |
Page 1 of 1 |
Author: | crt [ Sat Sep 15, 2012 6:26 pm ] |
Post subject: | shutdown from command line always shuts down immediately |
New installation of LinHES R7.4 Code: shutdown -h 02:10 should shut the machine down at 02:10am according to the documentation. It always shuts down immediately. /sbin/shutdown script isn't written to deal with this situation [edit: if runit is in use rather than init], it only understands -t delay option. I realise LinHES is an appliance but this came as a surprise. Bug or undocumented featurette? Notes: 1. Calling shutdown.init directly (eg: shutdown.init -h 02:10) results in: ... shutdown: /dev/initctl: No such file or directory init: /dev/initctl: No such file or directory ... 2. Trying to workaround using "at" command failed, there's no "at" in the repos. |
Author: | jams [ Thu Sep 20, 2012 3:25 pm ] |
Post subject: | Re: shutdown from command line always shuts down immediately |
It's neither a bug or undocumented feature, it's just how it is. The commands shutdown/halt/reboot are shell scripts provided for convenience. -t was added because someone needed it, Likewise -h support can be added or halt.c patched to avoid the runlevel check whichever is easier. |
Author: | crt [ Wed Sep 26, 2012 2:19 am ] |
Post subject: | Re: shutdown from command line always shuts down immediately |
Thanks for that info. jams; I feel happier knowing I can wade in and adapt it to my own needs. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |