Clean powerdown remotely


Recommended Posts

There are some old topics in the forum and the docs aren't very clear.

 

I now have the current ver and I'm running docker containers and such.  What is the correct way to cleanly power down the array from the CLI?

 

the powerdown command has no help

 

Will that powerdown safely?  I am trying to script it from another machine so I can powerdown everything in case of a storm or something. 

 

Thanks.

Link to comment

I would suggest using a UPS, the system will shut down cleanly in the event of a power outage. You need to get a signal to unRAID so that it knows that the power has gone out. A Serial, USB or even an SNMP connection via the network can be leveraged. Make sure that the switch you would send this signal through is also on the UPS if you go with SNMP! :) 

 

I also found that using the Tips & Tweaks plug-in and selecting "ssh,bash" as the "Processes to kill before Array is Stopped:" helped immensely for shutdowns too.

 

Also, I can confirm, 'poweroff' works nicely for a clean shutdown, just tried it.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.