Answer the question
In order to leave comments, you need to log in
How to manage monit on systems with systemd, like the new debian 8?
Given: Debian 8, Monit
Need to manage services via systemd
[email protected]: cat /etc/monit/conf.d/*
set httpd port XXX
allow admin:********
check process openvpn
matching "openvpn"
start program = "/etc/init.d/openvpn start"
stop program = "/etc/init.d/openvpn stop"
if failed host 127.0.0.1 port XXX then restart
if 5 restarts within 5 cycles then timeout
/etc/monit/conf.d/openvpn.cfg:3: Program does not exist: 'systemctl'
/etc/monit/conf.d/openvpn.cfg:4: Program does not exist: 'systemctl'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question