diff --git a/bundles/systemd-timers/files/template.service b/bundles/systemd-timers/files/template.service index 7465f8f..6f7c444 100644 --- a/bundles/systemd-timers/files/template.service +++ b/bundles/systemd-timers/files/template.service @@ -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