Shutdown Cron Jobs

Status
Not open for further replies.

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
Hi everyone, sorry for my inexperience, i have create a Cron Jobs for shutting down my FreeNAS, this are the specification:

User: root
Command: shutdown -p now
Short description: Shutdown 01.30
Minute: 30
Hour: 01
Day of Month: 1
Month: Everymonth
Day: Everyday
Redirect Stdout: Checked
Redirect Stderr: Checked
Enabled: Checked

I need my server to go out every night to save energy! Someone know how to help me?
 

Yatti420

Wizard
Joined
Aug 12, 2012
Messages
1,437
-h is for halting.. As a cron its not necessary it'll run when OP programs it via GUI.. Is -p not working? Your cron should control the time so -p should be fine.. Is power not cleanly turning off but everything is down or? HINT: Based on your schedule.. You specified only 1 day of the month.. Fix that first! Time is fine.. Day is wrong..

To turn server back on use RTC alarm in BIOS... Or schedule startup :)

https://www.freebsd.org/cgi/man.cgi?shutdown(8)
 
Last edited:

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
-h is for halting.. As a cron its not necessary it'll run when OP programs it via GUI.. Is -p not working? Your cron should control the time so -p should be fine.. Is power not cleanly turning off but everything is down or? HINT: Based on your schedule.. You specified only 1 day of the month.. Fix that first! Time is fine.. Day is wrong..

To turn server back on use RTC alarm in BIOS... Or schedule startup :)

https://www.freebsd.org/cgi/man.cgi?shutdown(8)

Thank you a lot and sorry! :(
 
Status
Not open for further replies.
Top