15 lines
457 B
Desktop File
15 lines
457 B
Desktop File
[Unit]
|
|
Description=Service for Timer ${timer}
|
|
After=network.target
|
|
% if config.get('requires', ''):
|
|
Requires=${config['requires']}
|
|
% endif
|
|
|
|
[Service]
|
|
User=${config.get('user', 'root')}
|
|
Group=${config.get('group', config.get('user', 'root'))}
|
|
% for k, v in sorted(config.get('environment', {}).items()):
|
|
Environment=${k}=${v}
|
|
% endfor
|
|
WorkingDirectory=${config.get('pwd', '/')}
|
|
ExecStart=/usr/local/sbin/systemd-timer-monitored ${timer} ${config['command']}
|