monit/rspamd: monitor by process name

This commit is contained in:
Ryan Mulligan 2022-05-08 15:18:13 -07:00 committed by lewo
parent 6284a20f77
commit 15cf252a0d
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ in
stop program = "${pkgs.systemd}/bin/systemctl stop dovecot2"
if failed host ${cfg.fqdn} port 993 type tcpssl sslauto protocol imap for 5 cycles then restart
check process rspamd with pidfile /var/run/rspamd.pid
check process rspamd with matching "rspamd: main process"
start program = "${pkgs.systemd}/bin/systemctl start rspamd"
stop program = "${pkgs.systemd}/bin/systemctl stop rspamd"
'';