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.

How do I execute code when user presses "stop array"?

Featured Replies

I'm sure this is buried somewhere in the forum here but despite my searching I could not find it.  ???

 

I've added rtorrent and it's working great.  The only problem is that if a torrent is downloading and I press the "stop array" button then all the drives show up as "unformatted" except the drive I'm downloading to and parity, both of which remain mounted.  Obviously, this is because rtorrent is still writing to open files on the disk.

 

Is there a script or something I can edit so that I can stop rtorrent before the drives are unmounted?

 

Thanks

I'm sure this is buried somewhere in the forum here but despite my searching I could not find it.  ???

 

I've added rtorrent and it's working great.  The only problem is that if a torrent is downloading and I press the "stop array" button then all the drives show up as "unformatted" except the drive I'm downloading to and parity, both of which remain mounted.  Obviously, this is because rtorrent is still writing to open files on the disk.

 

Is there a script or something I can edit so that I can stop rtorrent before the drives are unmounted?

 

Thanks

Today, you can't.  There is no "hook" to execute your script when the "stop" button is pressed.

 

It is a feature that should become available in version 5.x of unRAID. 

 

For now, you will have to remember to stop your rTorrent first, then stop the array. 

  • Author

Okay, thanks for the reply.  I'll keep an eye out for the 5.x release.

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.