-
Disregard. I'm an idiot. I had a typo in the cron. |
Beta Was this translation helpful? Give feedback.
Answered by
tmiland
Mar 17, 2021
Replies: 1 comment
-
Hey, I'm using this for restarting Invidious: * * * * * curl -o /dev/null -s -m 10 http://169.254.169.254/metadata/v1/interfaces/private/0/ipv4/address:3000 || systemctl restart invidious
* * * * * sleep 30 && curl -o /dev/null -s -m 10 http://169.254.169.254/metadata/v1/interfaces/private/0/ipv4/address:3000 || systemctl restart invidious
@hourly systemctl restart invidious This is for a DigitalOcean droplet, where So if curl is failing on ip:port, it'll restart the service. And one for hourly restart just to be sure. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tmiland
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
I'm using this for restarting Invidious:
This is for a DigitalOcean droplet, where
http://169.254.169.254/metadata/v1/interfaces/private/0/ipv4/address:3000
are for the private IP address. The second one with a 30 sec. delay, so it'll run every minute, or each every 30 seconds.So if curl is failing on ip:port, it'll restart the service.
And one for hourly r…