monit #4
1 changed files with 6 additions and 1 deletions
|
@ -44,7 +44,12 @@ check process ${service} matching "${options['bin']}"
|
||||||
start program = "/bin/systemctl start ${options.get('systemd_unit', 'service')}.service"
|
start program = "/bin/systemctl start ${options.get('systemd_unit', 'service')}.service"
|
||||||
stop program = "/bin/systemctl stop ${options.get('systemd_unit', 'service')}.service"
|
stop program = "/bin/systemctl stop ${options.get('systemd_unit', 'service')}.service"
|
||||||
% for port,port_options in sorted(options.get('ports', {}).items()):
|
% for port,port_options in sorted(options.get('ports', {}).items()):
|
||||||
if failed port ${port} protocol ${port_options['protocol']} for ${port_options.get('cycles', '5')} cycles then restart
|
if failed port ${port}
|
||||||
|
% if port_options.get('protocol', {}):
|
||||||
|
protocol ${port_options['protocol']}
|
||||||
|
% endif
|
||||||
|
for ${port_options.get('cycles', '5')} cycles
|
||||||
|
then restart
|
||||||
% endfor
|
% endfor
|
||||||
% for domain,http_options in sorted(options.get('http', {}).items()):
|
% for domain,http_options in sorted(options.get('http', {}).items()):
|
||||||
if failed host ${domain}
|
if failed host ${domain}
|
||||||
|
|
Loading…
Reference in a new issue