Shutdown from cron?

Shutdown from cron?

Post by Steven M. Pa » Sat, 06 Nov 1993 22:37:08

I tried to put a line in my /usr/spool/cron/crontabs/root
as follows:

0 22 * * * /etc/shutdown -r now

It **DOES** reboot the machine, but upon next load, the filesystems are
mounted as un-checked and e2fsck runs.  If I shutdown from a root login,
I don't have this problem.



 Milwaukee, WI                          FidoNet:  1:154/600


1. Shutdown from cron?

I tried to put a 'shutdown -h now' in a crontab line for root, to no avail.
At the next boot fsck runs and there is no '/dev/hda2 is clean, no check'
line on the screen.

I tried to redirect stdout/stderr to /var/adm/messages.
This shows an error: 'umount: /dev/hda2 is busy' or something to that

Could someone please suggest the right solution for having a correct
shutdown of the system started from a contab line?
Thanks in advance.

Michele Marziani

44100 Ferrara - ITALY     * * *      voice/fax  +39-532-63631          

2. How to set up a DCC?

3. Shutdown via cron or at?

4. More Phillips LMS CDROM stuff

5. cron.deny and cron.allow files for CRON management

6. Help request: Linux kernel compile errors

7. cron-shutdown

8. Boot managers?

9. Shutdown started from cron?

10. Can cron script do shutdown and bootup???

11. cron and visual cron

12. cron, perl, and signals -- cron spins out of control

13. can't shutdown with 'shutdown'