Results 1 to 3 of 3
I have a Debian server that I want to shutdown on a schedule for maintenance reasons but am scratching my head on it. I was attempting to use the /sbin/halt ...
- 03-05-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 6
schedule a shutdown
I have a Debian server that I want to shutdown on a schedule for maintenance reasons but am scratching my head on it. I was attempting to use the /sbin/halt command but that can only be run as root (right?) .. anyone have any good ideas on this?
Thanks.
- 03-05-2007 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Yup that can only be run as root. In fact it is only xdm/gdm/kdm that can shutdown outside of root.
If you are scheduling it use you can setup a schedule for it under root's cron.
- 03-05-2007 #3
If its a one off situation, you can use the "at" command as root instead of cron.


Reply With Quote
