From 94b04d166c1041028571222b9931121b0f7dfded Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 22 May 2017 23:31:10 +0300 Subject: Implement brep-clean --- etc/systemd/brep-clean.service | 11 +++++++++++ etc/systemd/brep-clean.timer | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 etc/systemd/brep-clean.service create mode 100644 etc/systemd/brep-clean.timer (limited to 'etc') diff --git a/etc/systemd/brep-clean.service b/etc/systemd/brep-clean.service new file mode 100644 index 0000000..0099d62 --- /dev/null +++ b/etc/systemd/brep-clean.service @@ -0,0 +1,11 @@ +[Unit] +Description=brep build database cleaner service + +[Service] +Type=oneshot +#User=brep +#Group=brep +ExecStart=/home/brep/install/bin/brep-clean /home/brep/config/buildtab + +[Install] +WantedBy=default.target 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 -- cgit v1.1