Jump to content

Stop and Start Array using User Scripts


Recommended Posts

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

Link to comment


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

 

 

Link to comment
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

 

 

 

Link to comment
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).

Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...