[Not Solved]
Dec 09, 2018, 12:41 AM
(This post was last modified: Dec 09, 2018, 12:45 AM by LJSeinfeld.
Edit Reason: more info
)
I'm redoing my HTPC support stuff on a VM running Ubuntu server (18.04).
I'm using your guide on having monit watch the VPN connection; I have monit up and running, and the script appears to be working.
Ideally I'd like Monit to start my various things (SAB, Transmission, Sonnarr, Radarr, Jackett, etc) after the VPN comes up. VPN is running as an enabled service and starts up at boot as expected.
I have Monit watching SAB, Sonarr, Radarr, Jackett, Transmission, Headphones, etc. --They are also installed as services, but not enabled (so they don't autostart at boot). Monit is watching them / looking for them so it should start them if they're not running.
For some reason, things don't always start up properly. Right now Radarr didn't start at reboot. It will start if I 'sudo service radarr start'. I don't understand why Monit isn't starting it --or restarting it.
Any ideas?
My Monit config:
My radarr.service file:
Any ideas? Jackett is running basically the same way. Trying to avoid running them with a VPN-up script, cron job, etc, if possible.
I'm using your guide on having monit watch the VPN connection; I have monit up and running, and the script appears to be working.
Ideally I'd like Monit to start my various things (SAB, Transmission, Sonnarr, Radarr, Jackett, etc) after the VPN comes up. VPN is running as an enabled service and starts up at boot as expected.
I have Monit watching SAB, Sonarr, Radarr, Jackett, Transmission, Headphones, etc. --They are also installed as services, but not enabled (so they don't autostart at boot). Monit is watching them / looking for them so it should start them if they're not running.
For some reason, things don't always start up properly. Right now Radarr didn't start at reboot. It will start if I 'sudo service radarr start'. I don't understand why Monit isn't starting it --or restarting it.
Any ideas?
My Monit config:
Code:
check process Radarr matching "mono"
start program = "/bin/bash /usr/sbin/service radarr start"
stop program = "/bin/bash /usr/sbin/service radarr stop"
if failed host 127.0.0.1 port 7878 then restart
Code:
[Unit]
Description=Radarr Daemon
After=network.target
[Service]
User=MyUser
Group=MyGroup
Type=simple
ExecStart=/usr/bin/mono /opt/Radarr/Radarr.exe -nobrowser
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target