bundles/systemd-timers: add exclude_from_monitoring

This commit is contained in:
Franzi 2023-07-13 21:31:25 +02:00
parent 3936e64227
commit 6b27128b6d
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 6 additions and 1 deletions

View file

@ -17,6 +17,8 @@ Type=oneshot
% for command in config['command']:
ExecStart=/usr/local/sbin/systemd-timer-monitored ${timer} ${command}
% endfor
% elif config.get('exclude_from_monitoring', False):
ExecStart=${config['command']}
% else:
ExecStart=/usr/local/sbin/systemd-timer-monitored ${timer} ${config['command']}
% endif