bundles/systemd-timers: add support for multiple commands in timer

This commit is contained in:
Franzi 2022-02-07 07:01:19 +01:00
parent 39e9ececa2
commit 40485ced8a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -12,4 +12,11 @@ Group=${config.get('group', config.get('user', 'root'))}
Environment=${k}=${v}
% endfor
WorkingDirectory=${config.get('pwd', '/')}
Type=oneshot
% if isinstance(config['command'], list):
% for command in config['command']:
ExecStart=/usr/local/sbin/systemd-timer-monitored ${timer} ${command}
% endfor
% else:
ExecStart=/usr/local/sbin/systemd-timer-monitored ${timer} ${config['command']}
% endif