From 2cbe3e3b53863fc57abb884f440e6b8cdbc071ba Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Tue, 4 Jan 2022 13:43:15 +0100 Subject: [PATCH] monit: fix service name definition --- bundles/monit/files/monitrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/monit/files/monitrc b/bundles/monit/files/monitrc index 6fd724f..9f5d35a 100644 --- a/bundles/monit/files/monitrc +++ b/bundles/monit/files/monitrc @@ -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', {}):