contrib: add systemd script as contrib
This commit is contained in:
parent
976896bc2f
commit
48df6cc9bd
|
@ -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
|
|
@ -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
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue