check process rspamd matching rspamd
  group mail
  start program = "/bin/systemctl start rspamd"
  stop program = "/bin/systemctl stop rspamd"
  if failed port 11333 type tcp
    with timeout 10 seconds
    then restart
  if 5 restarts within 5 cycles then timeout