View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Sep 15, 2012 6:26 pm 
Offline
Joined: Thu Sep 13, 2012 6:54 pm
Posts: 6
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.


Top
 Profile  
 
PostPosted: Thu Sep 20, 2012 3:25 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
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.


Top
 Profile  
 
PostPosted: Wed Sep 26, 2012 2:19 am 
Offline
Joined: Thu Sep 13, 2012 6:54 pm
Posts: 6
Thanks for that info. jams; I feel happier knowing I can wade in and adapt it to my own needs.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu