squirrellydw Posted July 8, 2018 Share Posted July 8, 2018 Is there away to have a docker restart automatically every few days? I would like to have my Plex docker restart once a week, just seems to run better when I do that. Quote Link to comment
Squid Posted July 8, 2018 Share Posted July 8, 2018 User scripts plugin. Script would be something likedocker restart PlexSent via Tapatalk because I'm either at work or enjoying the summer 1 Quote Link to comment
squirrellydw Posted July 8, 2018 Author Share Posted July 8, 2018 5 hours ago, Squid said: User scripts plugin. Script would be something like docker restart Plex Sent via Tapatalk because I'm either at work or enjoying the summer So all I need to do is Click add a New Script and name it "docker restart Plex" Quote Link to comment
Squid Posted July 8, 2018 Share Posted July 8, 2018 Name it something like Restart Plex. Then "Edit Script" And the script will be #!/bin/bash docker restart Plex or whatever the container's name actually is 3 2 Quote Link to comment
squirrellydw Posted July 9, 2018 Author Share Posted July 9, 2018 (edited) thank you I will try it out. Container name is just Plex I think. Running Linuxserver.IO Plex and if I click on edit next to name it says Plex. Thanks Edited July 9, 2018 by squirrellydw Quote Link to comment
squirrellydw Posted July 9, 2018 Author Share Posted July 9, 2018 Oh one more question, anyway to tell when it has been restarted? Quote Link to comment
BRiT Posted July 9, 2018 Share Posted July 9, 2018 (edited) docker ps The column is Status but indicates how long it's been running. Edited July 9, 2018 by BRiT Quote Link to comment
squirrellydw Posted July 9, 2018 Author Share Posted July 9, 2018 thanks, found it under advance settings also Quote Link to comment
simoncana2 Posted February 10, 2023 Share Posted February 10, 2023 Hi! I use Jdownloader + nordlynx. I would like nordlynx to restart every 8 minutes to bypass download limits from a hoster. Is it possible to make a restart interval in user scripts? Quote Link to comment
itimpi Posted February 10, 2023 Share Posted February 10, 2023 5 minutes ago, simoncana said: Hi! I use Jdownloader + nordlynx. I would like nordlynx to restart every 8 minutes to bypass download limits from a hoster. Is it possible to make a restart interval in user scripts? You could if you use the option to use a custom schedule. You should look up the format of crontab entries to see how to do this. Quote Link to comment
Recommended Posts
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.