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.

Remote Shutdown

Featured Replies

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!**

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.

 

 

  • 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?

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.  

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.

  • 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.

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.

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

  • Author

Cheers  :)

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.

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.