diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-18 10:34:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-18 10:34:35 +0200 |
commit | e6f997a7918d4e53f765b866d3775cc38d1a7ee5 (patch) | |
tree | dc96ae1815808e63a01041a49749f662bc7dc64f /etc/systemd | |
parent | 64e889f0ca84121a4e92840f9283cf9cf36279e6 (diff) |
Add systemd-based setup instruction for periodic loader execution
Diffstat (limited to 'etc/systemd')
-rw-r--r-- | etc/systemd/brep-loader.service | 9 | ||||
-rw-r--r-- | etc/systemd/brep-loader.timer | 23 |
2 files changed, 32 insertions, 0 deletions
diff --git a/etc/systemd/brep-loader.service b/etc/systemd/brep-loader.service new file mode 100644 index 0000000..dec7944 --- /dev/null +++ b/etc/systemd/brep-loader.service @@ -0,0 +1,9 @@ +[Unit] +Description=brep repository loader service + +[Service] +Type=oneshot +ExecStart=/home/brep/install/bin/brep-loader /home/brep/config/brep-loader.conf + +[Install] +WantedBy=default.target diff --git a/etc/systemd/brep-loader.timer b/etc/systemd/brep-loader.timer new file mode 100644 index 0000000..22ff22b --- /dev/null +++ b/etc/systemd/brep-loader.timer @@ -0,0 +1,23 @@ +[Unit] +Description=brep repository loader timer +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +Unit=brep-loader.service + +# Don't keep track of the timer across reboots. +# +Persistent=false + +# Wait 20 seconds until the first run. +# +OnBootSec=20 + +# Then wait 5 minutes until the next run. +# +OnUnitInactiveSec=5m + + +[Install] +WantedBy=timers.target |