May 17, 201511 yr 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.
May 19, 201511 yr 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.
May 19, 201511 yr No. It's an optional plugin. Does the apcupsd plugin that's part of unraid install powerdown?
May 19, 201511 yr No. It's an optional plugin. Does the apcupsd plugin that's part of unraid install powerdown? I do not believe it does.
May 19, 201511 yr 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.
May 19, 201511 yr 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]
May 19, 201511 yr 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
May 19, 201511 yr 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.
May 19, 201511 yr 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.
May 19, 201511 yr 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 ;-)
May 19, 201511 yr 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.
May 19, 201511 yr Powerdown post here http://lime-technology.com/forum/index.php?topic=31735.msg288775#msg288775 has been updated. Thanks for the suggestion.
May 20, 201511 yr 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.