Shutdown -p now cron job?

Status
Not open for further replies.

bdacasc

Dabbler
Joined
Mar 15, 2012
Messages
38
I use Freenas for backup and I want to shutdown the system via cron after my robocopy is done
When I issue the command "Shutdown -p now" via ssh the system power off completely. Totally Dead!! Works great!

But whe I use the same command from cron the freenas system stops (blank screen, no ping) but the hardware is still runing.
Fan is on and disk is spinning. It is more like the system is in sleep mode.
I need to use my magic finger to power off the system :)


System Information

Hostname freenas3.xxhultzx.local
FreeNAS Build FreeNAS-8.0.4-RELEASE-x64 (10351)
Platform Intel(R) Celeron(R) CPU 430 @ 1.80GHz
Memory 7919MB
System Time Sun Apr 29 06:40:20 2012
Uptime 6:40AM up 14 mins, 0 users
Load Average 0.34, 0.14, 0.11
OS Version FreeBSD 8.2-RELEASE-p6

Any advice on the matter
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
That is odd. I just tested this out and it worked fine for me. I created a cron job with the fields filled in as follows:
User = root
Command = shutdown -p now
Description = Shutdown
And set the time of the Cron to run of course.

My system shut down twice automatically so it did work for me. Now I've got to remove that cron before I forget about it. I also used 8.0.4-Multimedia release version, almost exactly the same as your and shouldn't make a difference.

Wish I could give you some advice but I don't know why your system didn't turn off if it works fine from ssh.
 

bdacasc

Dabbler
Joined
Mar 15, 2012
Messages
38
THX Joeschmuck!
New bios upgrade solved the problem, not to the magic finger but to the ASRock G41M-GS3.
Now Running Ver 1.30

Carlitos Briljante
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Glad the BIOS update fixed it. It's still odd but I do understand it.
 
Status
Not open for further replies.
Top