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.

Problem with powerdown script on 6.0-rc2

Featured Replies

Hi All,

I installed / updated the latest powerdown plugin / package toghether with the update to: unraid 6.0-rc2.

 

https://raw.githubusercontent.com/dlandon/unraid-snap/master/powerdown-x86_64.plg

 

But now when i execute the /sbin/powerdown script it starts to terminate everything and then i get this message and it halts:

 

INIT: no more processes left in this runlevel

 

Has anyone an idea what is wrong with my system or is it a bug in the powedown plugin?

 

What i tried is to remove the package and plugin and reinstall, but that didnt solve it.

 

  • Author

thnx! it worked :)

Isnt the powerdown package part of unraid now?

There is a powerdown facility in unRAID, but it is not as comprehensive as the plugin version.  In particular the unRAID version seems to hang if emhttp has problems while the plugin version seems to continue OK.

 

I am assuming at some point the built-in powerdown will cover all the capability of the plugin version and the plugin will then be deprecated but it is not there yet.

No. It's an optional plugin.

Does the apcupsd plugin that's part of unraid install powerdown?

No. It's an optional plugin.

Does the apcupsd plugin that's part of unraid install powerdown?

I do not believe it does.

No. It's an optional plugin.

Does the apcupsd plugin that's part of unraid install powerdown?

I do not believe it does.

 

There is a powerdown script built into unRAID that properly shuts down the server.  The old apcupsd plugin used to depend on the powerdown plugin script I have been supporting, but the apcupsd that is built into unRAID no longer depends on the powerdown plugin and uses the powerdown script built into unRAID to perform a proper shutdown.

 

The optional powerdown plugin offers a few enhancements to the powering down of the server:

- The built in powerdown script can at times get hung on shutdown waiting for drives to unmount.  The plugin forces a shutdown at the expense of possibly a parity check on the next startup if the shutdown is unclean.

- The optional powerdown plugin forces a shutdown so the server will turn off when a power failure has happened and won't get stuck waiting for disks to unmount.

- The optional powerdown plugin offers some event scripts to be installed to handle special circumstances.

- The optional powerdown plugin saves a history of logs on the flash drive.

 

The powerdown plugin is not required for proper shutdown of the unRAID server.

 

I expect that some of this functionality will be built into unRAID on a future release.  I think the log history can be very helpful in troubleshooting.

WAIT?!?! Is that why I'm not seeing logs saved to my flash anymore? Because I removed the powerdown script a while back?

 

WTF is limetech thinking not saving log files!?!?!?!?! I was actually getting ready to post that as a defect report ... I still might because that is a huge oversight IMNSHO

 

Looks like I need to reinstall powerdown or find a way to get logs saved [sigh]

No. It's an optional plugin.

Does the apcupsd plugin that's part of unraid install powerdown?

I do not believe it does.

 

There is a powerdown script built into unRAID that properly shuts down the server.  The old apcupsd plugin used to depend on the powerdown plugin script I have been supporting, but the apcupsd that is built into unRAID no longer depends on the powerdown plugin and uses the powerdown script built into unRAID to perform a proper shutdown.

 

The optional powerdown plugin offers a few enhancements to the powering down of the server:

- The built in powerdown script can at times get hung on shutdown waiting for drives to unmount.  The plugin forces a shutdown at the expense of possibly a parity check on the next startup if the shutdown is unclean.

- The optional powerdown plugin forces a shutdown so the server will turn off when a power failure has happened and won't get stuck waiting for disks to unmount.

- The optional powerdown plugin offers some event scripts to be installed to handle special circumstances.

- The optional powerdown plugin saves a history of logs on the flash drive.

 

The powerdown plugin is not required for proper shutdown of the unRAID server.

 

I expect that some of this functionality will be built into unRAID on a future release.  I think the log history can be very helpful in troubleshooting.

Thanks for the clarification.

 

One last question, if I install your optional plugin, will unraid's built in apcupsd rely on your powerdown, or the built in one? In other words, does your plugin replace the built in version?

 

Thanks

No. It's an optional plugin.

Does the apcupsd plugin that's part of unraid install powerdown?

I do not believe it does.

 

There is a powerdown script built into unRAID that properly shuts down the server.  The old apcupsd plugin used to depend on the powerdown plugin script I have been supporting, but the apcupsd that is built into unRAID no longer depends on the powerdown plugin and uses the powerdown script built into unRAID to perform a proper shutdown.

 

The optional powerdown plugin offers a few enhancements to the powering down of the server:

- The built in powerdown script can at times get hung on shutdown waiting for drives to unmount.  The plugin forces a shutdown at the expense of possibly a parity check on the next startup if the shutdown is unclean.

- The optional powerdown plugin forces a shutdown so the server will turn off when a power failure has happened and won't get stuck waiting for disks to unmount.

- The optional powerdown plugin offers some event scripts to be installed to handle special circumstances.

- The optional powerdown plugin saves a history of logs on the flash drive.

 

The powerdown plugin is not required for proper shutdown of the unRAID server.

 

I expect that some of this functionality will be built into unRAID on a future release.  I think the log history can be very helpful in troubleshooting.

Thanks for the clarification.

 

One last question, if I install your optional plugin, will unraid's built in apcupsd rely on your powerdown, or the built in one? In other words, does your plugin replace the built in version?

 

Thanks

 

Yes, the plugin replaces the stock powerdown script and apcupsd will use the plugin powerdown.  In fact all power actions use the plugin:

- Power button power down (Quick press, not hold down).

- UPS shutdown.

- Command line actions like reboot and shutdown.

- Ctrl-Alt-Del powerdown.

WAIT?!?! Is that why I'm not seeing logs saved to my flash anymore? Because I removed the powerdown script a while back?

 

WTF is limetech thinking not saving log files!?!?!?!?! I was actually getting ready to post that as a defect report ... I still might because that is a huge oversight IMNSHO

 

Looks like I need to reinstall powerdown or find a way to get logs saved [sigh]

 

Powerdown is on the road map.  Not sure what LT has in mind at this point.

Well, I'm not so concerned about "powerdown" as I am saved logs. I feel like they've hit the major needs with the stock powerdown script except for that.

 

Of course I see the benefits of your script as well since I think theirs should also force a shutdown on power-loss.

 

Anyway your post just made a light bulb go off in my head and the result was splashed all over my power ;-)

There is a powerdown script built into unRAID that properly shuts down the server.  The old apcupsd plugin used to depend on the powerdown plugin script I have been supporting, but the apcupsd that is built into unRAID no longer depends on the powerdown plugin and uses the powerdown script built into unRAID to perform a proper shutdown.

 

The optional powerdown plugin offers a few enhancements to the powering down of the server:

- The built in powerdown script can at times get hung on shutdown waiting for drives to unmount.  The plugin forces a shutdown at the expense of possibly a parity check on the next startup if the shutdown is unclean.

- The optional powerdown plugin forces a shutdown so the server will turn off when a power failure has happened and won't get stuck waiting for disks to unmount.

- The optional powerdown plugin offers some event scripts to be installed to handle special circumstances.

- The optional powerdown plugin saves a history of logs on the flash drive.

 

The powerdown plugin is not required for proper shutdown of the unRAID server.

 

I expect that some of this functionality will be built into unRAID on a future release.  I think the log history can be very helpful in troubleshooting.

 

Yes, the plugin replaces the stock powerdown script and apcupsd will use the plugin powerdown.  In fact all power actions use the plugin:

- Power button power down (Quick press, not hold down).

- UPS shutdown.

- Command line actions like reboot and shutdown.

- Ctrl-Alt-Del powerdown.

 

Very nice summary!  I suspected as much about some of it.  If I could make a suggestion, remove the statement of deprecation, and replace it with something lifted from what you wrote above, showing the pros and cons of both powerdown functions, leaving it to the user to decide.

I like!

 

One more suggestion, add a line indicating something like -

 

- The optional powerdown plugin still works even if emhttp has been locked up or OOM-killed.  The built in powerdown doesn't.

 

I assume Tom will fix that, but I don't think it has happened yet.

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.