shutdown machine from crontab

Joe Zeff joe at zeff.us
Wed Sep 16 01:23:50 UTC 2015


On 09/15/2015 06:12 PM, Ranjan Maitra wrote:
> Can you try:
>
> systemctl poweroff
>
> instead of /usr/bin/poweroff and see if that works?

It might be enough to add -f to the command line in crontab to force the 
issue.  And, directing the output to a file might help you to find out 
why it fails.


More information about the users mailing list