Cronjob and a bash script?
Self Hosted - Self-hosting your services.
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules
- No harassment
- crossposts from c/Open Source & c/docker & related may be allowed, depending on context
- Video Promoting is allowed if is within the topic.
- No spamming.
- Stay friendly.
- Follow the lemmy.ml instance rules.
- Tag your post. (Read under)
Important
Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!
- Lemmy doesn't have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate.
Cross-posting
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed if topic has to do with selfhosting.
- [email protected] is allowed!
If you see a rule-breaker please DM the mods!
You're thinking i could make a bash script that pauses all torrents and a cronjob that restarts containers with some timing built in?
Yeah. Example: if pings get flakey, or can't curl address, then restart all the things.
Doesn't need to stop torrents, just close the app, restart networking, and start it again.
I would investigate what is actually causing the connection to slow, but you can just run docker restart gluetun qbittorrent
from cron or whatever.
Make sure everything starts automatically after a reboot, and reboot daily.