Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux 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.

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    If its a one off situation, you can use the "at" command as root instead of cron.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •