Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Graceful shutdown and reboot from command line

Featured Replies

Hi.  I'm currently in the process of migrating to unRaid as my storage and vm solution.  I've got all my data migrated but when setting up Plex docker I've experienced two times now that the WebUI stops responding.  My question is thus; is there a simple way to gracefully shutdown from the command line?  As far as I've found there is no simple way to restart the web ui, and the general consensus seems to be to just restart the entire server.  First time I ended up just forcing a shutdown by hard switching off, but now the web interface has crashed again and I wonder if there's at least a way to shut it down cleanly.  I've searched, but most answers I find are really old, and I'm unsure if they still apply.  (Like this 9 year old one one for instance : )

 

 

I'm running "latest" unRAID, don't know the version as the WebUI is crashed, but it was downloaded like a month ago.  Any help would be appreciated.

  • Author

Hmm, looking at the FAQ I found this:

 

That indicates there is a powerdown script.  I'll try that once the two preclear operations I have going are done.

There are 2 scripts. The old one was developed by the community an no longer works. The new one is built into the latest unRAID. It is poweroff.

via mobile

  • Community Expert
6 minutes ago, tr0910 said:

There are 2 scripts. The old one was developed by the community an no longer works. The new one is built into the latest unRAID. It is poweroff.

via mobile
 

In addition to the poweroff command, there is also the reboot command.

7 hours ago, sindre said:

Hmm, looking at the FAQ I found this:

 

That indicates there is a powerdown script.  I'll try that once the two preclear operations I have going are done.

 

I've updated the FAQ entry to use poweroff instead.  Thanks for pointing it out.

7 hours ago, tr0910 said:

There are 2 scripts. The old one was developed by the community an no longer works. The new one is built into the latest unRAID. It is poweroff.

via mobile
 

6.3.2 still includes the powerdown script.  Its been deprecated as in that its no longer the original script as developed by dlandon.  What it merely does is call poweroff / reboot

#!/bin/bash
logger "/usr/local/sbin/powerdown has been deprecated"
if [[ "$1" == "-r" ]]; then
  /sbin/reboot
else
  /sbin/poweroff
fi

Since I've been typing powerdown and powerdown -r for years now, muscle memory is burned into me to only use that (especially since previously poweroff / reboot were not graceful at all in unRaid.

 

TBQH, I'm going to keep posting the powerdown commands if / when I help someone as its what I'm used to.  (and if LT ever actually deletes the powerdown script, then I'm going to add it back in - Just too used to it to change.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.