On 02/15/2011 07:38 PM, sergey wrote:
> Sorry, running shutdown without arguments is my big error.

If you want to shutdown your computer, you will also need the '-h' flag.
The default behaviour for shutdown is to switch to runlevel 1, see
shutdown(8).

# This will halt/poweroff your system immediately:
$ /sbin/shutdown -h now

> I try then next /etc/crontab:
> -----------------------------
> # m h dom mon dow user<>command
> 
> 29 21<->* * * root<---->/sbin/shutdown now
> -----------------------------
> 
> There was no expected effect again.
> 
> syslog:
> -----------------------------
> Feb 15 21:29:01 fc3 /usr/sbin/cron[3464]: (*system*) RELOAD (/etc/crontab)
> Feb 15 21:30:01 fc3 /usr/sbin/cron[3464]: (*system*) RELOAD (/etc/crontab)
> -----------------------------

That is indeed strange. Which one of the edits added the above rule in
/etc/crontab? If it was the second one, you probably just missed it,
time-wise.

Could you modify the rule in-place (just change minute and hour) to two
minutes after begin editing, and try it again? We had a whitespace bug
in the parsing code previously, but that one should have been fixed.

Regards,
Christian

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to