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.

Stop and Start Array using User Scripts

Featured Replies

I have some rclone mounts that need refreshing every day. To do this, I have to manually stop and start the array.

 

How can I do this using userscript and cron?

 

From the wiki, it looks complicated as stopping array requires to run multiple commands. How can I just simulate the same steps done by the webgui button when we hit Stop.

 

 

image.thumb.png.daa0108d69df95f63aee9f83d61624b0.png


It IS complicated :) it is not something I have ever seen any user want to do under script control as a lot goes on behind the scenes during array stop/start. 

 

Is.there any reason you have to stop/start the whole array rather than just rclone and any associated mounts?   That feels much easier to accomplish although even then I have no experience of the exact steps involved

 

 

  • Author
7 hours ago, itimpi said:

I run a seedbox, which downloads media to my onedrive. Then I use rclone to mount the Onedrive storage to a unraid share and access all my media on plex. With the rclone script, I have set refresh time and all other flags, but newly downloaded media isnt updated unless I umoount and remount the the rclone share. 

The rclone mounting and unmounting is done via Usr Script and the trigger is Start of Array and Stop Of array. That is the reason why I was looking to do it.

 

7 hours ago, itimpi said:

 


It IS complicated :) it is not something I have ever seen any user want to do under script control as a lot goes on behind the scenes during array stop/start. 

 

Is.there any reason you have to stop/start the whole array rather than just rclone and any associated mounts?   That feels much easier to accomplish although even then I have no experience of the exact steps involved

 

 

 

15 minutes ago, hus2020 said:

The rclone mounting and unmounting is done via Usr Script and the trigger is Start of Array and Stop Of array. That is the reason why I was looking to do it.

Why not simply set it to be at a scheduled times which would be trivial to set up in User Scripts rather than array start/stop (or in addition to that).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.