I set up ```monit```, a utility for monitoring services on a Unix system. My concrete use case is a FreeBSD machine, that runs "N2N Edge", a Peer-to-peer (P2P) virtual private network (VPN) software. ```monit``` pretty much automates the "have you tried turning it off and on again?" process. Configurations like the following illustrate this:
```bash
check process myproc
matching "myproc"
start program = "/etc/init.d/myprocstart"
stop program = "/usr/bin/killall myproc"
if cpu usage > 95% for 10 cycles then restart
```
<a href="https://blag.nullteilerfrei.de/2016/11/01/monit-make-broken-things-work/#more-3668" class="more-link">Do you want to know more?</a>
Why do I want to? Because I run the incredibly awesome [FreeNAS](http://www.freenas.org/) on a small server, and the jails are FreeBSD. One of those jails is supposed to be a in an N2N VPN, so I can access the files from elsewhere.
<a href="https://blag.nullteilerfrei.de/2016/02/18/install-n2n-as-a-service-on-freebsd/#more-3554" class="more-link">Do you want to know more?</a>