monit: restart onlyoffice container if failed #9
1 changed files with 4 additions and 5 deletions
|
@ -22,11 +22,10 @@
|
|||
alertAddress = "admin@hacc.space";
|
||||
config = (lib.replaceStrings ["port 22"] ["port ${toString (lib.head config.services.openssh.ports)}"] options.mailserver.monitoring.config.default) + ''
|
||||
check host onlyoffice with address onlyoffice.infra4future.de
|
||||
if failed
|
||||
port 443
|
||||
protocol https
|
||||
status = 302
|
||||
then alert
|
||||
start program "/run/current-system/sw/bin/lxc-start onlyoffice"
|
||||
stop program "/run/current-system/sw/bin/lxc-stop onlyoffice"
|
||||
if failed port 443 protocol https status = 302
|
||||
then restart
|
||||
'';
|
||||
};
|
||||
domains = [
|
||||
|
|
Loading…
Reference in a new issue