From 15cf252a0dfffb2420a60fbd6be3467c11026142 Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Sun, 8 May 2022 15:18:13 -0700 Subject: [PATCH] monit/rspamd: monitor by process name --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index c438099..7ef5cba 100644 --- a/default.nix +++ b/default.nix @@ -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" '';