contrib: add systemd script as contrib

This commit is contained in:
Dirk Goetz 2016-09-05 13:20:50 +02:00 committed by Thomas Gelf
parent 976896bc2f
commit 48df6cc9bd
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Director Job runner
[Service]
Type=simple
ExecStart=/usr/bin/icingacli director jobs run --forever
Restart=on-success
[Install]
WantedBy=multi-user.target

View File

@ -67,6 +67,15 @@ Want so see more details? Add `--verbose` to get colorful log lines on STDERR.
In case the Job Runner is running with Systemd, those log lines will find its In case the Job Runner is running with Systemd, those log lines will find its
way to your system log. way to your system log.
An example script is included as [contrib](../contrib/systemd/director-jobs.service)
and can simply stored in `/etc/systemd/system/director-jobs.service`. To enable
and start the job afterwards run:
```sh
systemctl enable director-jobs.service
systemctl start director-jobs.service
```
Time periods Time periods
------------ ------------