Quantcast
Channel: Spencer's Blog
Viewing all articles
Browse latest Browse all 24

Monitoring Systemd Services / Automatic Cron Restart

$
0
0
I got a raspberry pi acting as a NUT SERVER, and it keeps flaking out. I keep having to restart nut-server all the time. Lets automate checking if the service is running and restart it if its not. The Issue. Every so often it just stops. See the graph below Lets create a bash script for checking the service Lets save the script and make it executable Lets edit crontab by typing “crontab -e” into the shell and add the...

Read More Read More


Viewing all articles
Browse latest Browse all 24

Trending Articles