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.

Running user script at powerdown

Featured Replies

  • Community Expert

Is there a way to run a user script during the powerdown sequence?  I would like to do things like tidily unmounts drives that are not part of the array.

 

I thought of adding entries to the go file to create a script in the appropriate place every time unRAID boots, but I thought there is probably a tidier way.

There are events in emhttp that you can hook into.  I don't have more specifics about it, Search on the board and/or wiki.

Perhaps someone else will chime in and provide more details.

  • Author
  • Community Expert

There are events in emhttp that you can hook into.  I don't have more specifics about it, Search on the board and/or wiki.

Perhaps someone else will chime in and provide more details.

I was hoping for something simpler.    I am not worried about the array shutdown, but the system shutdown.    This is the sort of thing I would normally expect to handle in a rc_* type script.  My current solution is to simply copy one into place from the USB stick in my go file.  I was wondering if I should be doing something else as an official alternative?

Similar to the go file, you can create a stop file in /boot/config/. It will be executed from /etc/rc.d/rc.local_shutdown.

Along the lines of Freddie's comment... The latest powerdown plugin offers start and stop scripts. Very nice to ensure orderly VM shutdown.

  • Author
  • Community Expert

Similar to the go file, you can create a stop file in /boot/config/. It will be executed from /etc/rc.d/rc.local_shutdown.

Thanks - that is exactly what I was looking for!

 

Perhaps a dummy stop file (containing only some comments) should be included as standard in the unRAID distribution?

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.