bundles/systemd-timers: add support for multiple commands in timer
This commit is contained in:
parent
39e9ececa2
commit
40485ced8a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue