skyking376 Posted September 4, 2012 Share Posted September 4, 2012 As the noob title suggests.... I read the FAQ, Wiki, and many of the looping posts about how many different possible ways pressing the power button "CAN" work if all the proper ducks are in a row. I followed Joe. L's post about how to determine if you have ACPI working properly or not but if it were not a very simple step by step explanation, I would be lost. A lot of mention of "Weebo's powerdown script" but also...where do I find it and where to put it when I find it? Definitely going to need a helping hand instead of just a link where I will get lost in another set of looping conversations. Unraid version 4.7 Link to comment
bobbintb Posted September 17, 2012 Share Posted September 17, 2012 the information can be a little difficult to find and interpret for someone not familiar with this sort of stuff. here is a link to the information for future reference: http://lime-technology.com/wiki/index.php/Powerdown_script but i will summarize it all for you. go here and download the script: http://code.google.com/p/unraid-powercontrol/downloads/list put the file in the "packages" folder in the root of your unraid flash drive (create the folder if it doesnt exist). on your flash drive go to the "config" folder and open the file "go" in notepad or other text editor. add these 2 lines to the end of it: installpkg /boot/packages/powerdown-1.02.tgz sysctl -w kernel.poweroff_cmd="/sbin/powerdown" reboot unraid. it should install the script and bind it to the power button, provided it is supported by the motherboard. Link to comment
Joe L. Posted September 18, 2012 Share Posted September 18, 2012 Actually, there are a few other steps you might want to make each time you reboot... Instead of the two lines you describe added to the "go" script, use these5 lines instead. They are the ones used if you used unMENU to install the powerdown script: CTRLALTDEL=yes installpkg /boot/packages/powerdown-1.02-noarch-unRAID.tgz [ -f /usr/local/sbin/powerdown ] && mv /usr/local/sbin/powerdown /usr/local/sbin/unraid_powerdown [ -f /usr/local/sbin/unraid_powerdown ] && sed -i "sX/usr/local/sbin/powerdownX/sbin/powerdownX" /etc/acpi/acpi_handler.sh [ ! -f /usr/local/sbin/unraid_powerdown ] && sed -i "sX/sbin/init 0X/sbin/powerdownX" /etc/acpi/acpi_handler.sh sysctl -w kernel.poweroff_cmd=/sbin/powerdown The extra commands (in blue) will allow you to use Control-Alt-Delete on the system console to trigger a powerdown. They will also properly modify the acpi_handler.sh script to invoke /sbin/powerdowninstead of /sbin/init if you press the power button on the server (for a clean powerdown) Oh yes,when the powerdown command was originally written, unRAID did not have a powerdown command of its own. Since that time, one was added, but it just presses the button on the web-interface. (effectively) The "mv" command renames the unRAID supplied command to unraid_powerdown so if you just type "powerdown" you'll get the one you installed, and not the stock behavior, which might do nothing if the web-interface crashed. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.