Jump to content

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


iarp

Recommended Posts

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.

Link to comment

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.

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.

×
×
  • Create New...