Skip to content

Commit

Permalink
contrib: add systemd script as contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoetz authored and Thomas-Gelf committed Sep 5, 2016
1 parent 976896b commit 48df6cc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrib/systemd/director-jobs.service
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions doc/79-Jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
------------

Expand Down

0 comments on commit 48df6cc

Please sign in to comment.