January 17, 201115 yr Hey guys, Via bash script, how would i go about shutting down UnRaid without physically accessing the machine or logging onto the web administration page? I'm running the latest beta. Had a look through the user scripts, couldn't see anything that relates to the latest beta. I'd prefer not to use SSH if possible. Is there a particular PHP page "eg, tower/shutdown=yes" that I can poll using CURL or similar? Cheers! *Mods, can you please move to correct category? Sorry!**
January 17, 201115 yr If you have unMenu running, you can add an user script invoking the "powerdown" command, and then use a link to trigger the the script.
January 18, 201115 yr Author Unfortunately not running unMenu anymore. I was in 4.6, but decided to remove it. Whole point of unRAID for me was to make it completely vanilla so it can focus on just one task. Any other solutions?
January 18, 201115 yr You could make a hidden share and a script that watch the directory for file(s) with specific name to appear. Then from remote simply copy an file to the share that would trigger whatever you want to happen.
January 18, 201115 yr It is actually pretty easy, since lime-tech has built the commands into the management interface. You just need to access two URLs in turn. //your_server_name/blank.htm and then //your_server_name/blank.htm?shutdown=apply This will NOT work if your disks are "busy" (add-on programs accessing disks, mover moving files in progress ) as the server will not stop until the disks are not busy, but since you said you are going completely vanilla, it might work for you.
January 18, 201115 yr Author It is actually pretty easy, since lime-tech has built the commands into the management interface. You just need to access two URLs in turn. //your_server_name/blank.htm and then //your_server_name/blank.htm?shutdown=apply This will NOT work if your disks are "busy" (add-on programs accessing disks, mover moving files in progress ) as the server will not stop until the disks are not busy, but since you said you are going completely vanilla, it might work for you. This doesn't appear to work under 5.0b2.
January 18, 201115 yr Hi there. You can compose a VBScript, as listed below: http://lime-technology.com/forum/index.php?topic=5534.msg51824#msg51824 I've been using this for ages, and it works fine (Simplifies powering off the server from you're couch to non-techie folk,who have this on their Desktop for a Media PC). The only flaw, the password in the script remains in plain text, so might not be ideal in some environments (For home should be fine). If you're planning to use this script on a Windows Vista/7 machine, be sure to install the 'Telnet Client' under 'Program and Features', as it depends on the 'telnet.exe' file. Hope this heaps.
January 18, 201115 yr It is actually pretty easy, since lime-tech has built the commands into the management interface. You just need to access two URLs in turn. //your_server_name/blank.htm and then //your_server_name/blank.htm?shutdown=apply This will NOT work if your disks are "busy" (add-on programs accessing disks, mover moving files in progress ) as the server will not stop until the disks are not busy, but since you said you are going completely vanilla, it might work for you. This doesn't appear to work under 5.0b2. yes, different URLs for 5.X //your_server_name/update.htm //your_server_name/update.htm?shutdown=apply
January 18, 201115 yr Remember, that will ONLY work if there is nothing holding a disk busy. If you telnet to the server and "cd" to a disk you will be holding it busy and the server will wait (forever) for you to log off before stopping the server. If the "mover" is moving a file from cache to the protected array it will wait for that transfer to complete. Since you said you will be running a "vanilla" server, it should be fine.
Archived
This topic is now archived and is closed to further replies.