monit: fix service name definition

This commit is contained in:
Rico 2022-01-04 13:43:15 +01:00
parent d317ef17d0
commit 2cbe3e3b53
Signed by: stillbeben
GPG Key ID: AE1066B5BD0B5041
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ check process ${systemd_service} matching "/lib/systemd/${systemd_service}"
% for service,options in sorted(monit.get('services', {}).items()):
check process ${service} matching "${options['bin']}"
start program = "/bin/systemctl start ${options.get('systemd_unit', 'service')}.service"
stop program = "/bin/systemctl stop ${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"
% for port,port_options in sorted(options.get('ports', {}).items()):
if failed port ${port}
% if port_options.get('protocol', {}):