aboutsummaryrefslogtreecommitdiff
path: root/etc/systemd/brep-clean.timer
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-22 23:31:10 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-24 16:12:02 +0300
commit94b04d166c1041028571222b9931121b0f7dfded (patch)
tree33d79d968cfd4a7e0977cb9686ae9ff4abfd52c4 /etc/systemd/brep-clean.timer
parent28de800a7a38ed781b8f04f8f380d65b2d79ec14 (diff)
Implement brep-clean
Diffstat (limited to 'etc/systemd/brep-clean.timer')
-rw-r--r--etc/systemd/brep-clean.timer23
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/systemd/brep-clean.timer b/etc/systemd/brep-clean.timer
new file mode 100644
index 0000000..f4c587e
--- /dev/null
+++ b/etc/systemd/brep-clean.timer
@@ -0,0 +1,23 @@
+[Unit]
+Description=brep build database cleaner timer
+RefuseManualStart=no
+RefuseManualStop=no
+
+[Timer]
+Unit=brep-clean.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