FreeNAS shutdown from command line

Status
Not open for further replies.

divB

Dabbler
Joined
Aug 20, 2012
Messages
41
What is the appropriate way to shutdown FreeNAS from command line?

For 2 years now I used just "halt".

But I need to issue this command via a script from a different computer so I do:

Code:
ssh -i pubkey root@freenas 'halt'


Now recently it happens that the ssh client hangs and never terminates/times out; there is no output of the command. So I am not sure if halt is actually the correct way to do ...
 

ClassicGOD

Contributor
Joined
Jul 28, 2011
Messages
145
poweroff
(/sbin/poweroff)

or

shutdown -p now
(/sbin/shutdown -p now)

both should be exactly the same.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
shutdown -p now

that is what I recommend.
 

divB

Dabbler
Joined
Aug 20, 2012
Messages
41
Thanks all!

So shutdown -p means "poweroff" and shutdown -h means just "halt". Then I'd do the latter because I have it connected through a power switch which turns off the load anyway
 
Status
Not open for further replies.
Top