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.

Will the powerdown script be activated for any type of shutdown or restart?

Featured Replies

I'm trying to figure out how to run a set of commands whenever the shutdown or reset buttons are pressed on the main GUI that ships with unraid.

 

I know there is the powerdown script system, but that requires knowledge of logging in via telnet and such, something i know they can't do. I'm also unsure if that, by installing powerdown, does that override whatever command the shutdown/restart buttons activate in the system?

 

I copied emhttp to my computer in hopes of being able to view the scripts and modify what i need to modify but it would see that it's an application and not a bash script.

I'm trying to figure out how to run a set of commands whenever the shutdown or reset buttons are pressed on the main GUI that ships with unraid.

 

I know there is the powerdown script system, but that requires knowledge of logging in via telnet and such, something i know they can't do. I'm also unsure if that, by installing powerdown, does that override whatever command the shutdown/restart buttons activate in the system?

 

I copied emhttp to my computer in hopes of being able to view the scripts and modify what i need to modify but it would see that it's an application and not a bash script.

Without knowing which version of unRAID you are running, we cannot give any answer.

 

In the 5.0-rc series, there is a script you can hook into at

/usr/local/sbin/emhttp_event

 

emhttp has a number of events that call the emhttp_event script, and it in turn can invoke other scripts.

 

There is no documentation, and you are on your own as it is a customization.  You'll need to replace the script each time you reboot, as it is in RAM.

 

Joe L.

  • Author

The machine is running unraid 4.7

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.