From 1dc38cf49b6c7a8b661a9cc675ded94c8ab33c36 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Jan 2016 07:35:12 +0200 Subject: Implement brep-migrate utility --- etc/systemd/brep-load.service | 9 +++++++++ etc/systemd/brep-load.timer | 23 +++++++++++++++++++++++ etc/systemd/brep-loader.service | 9 --------- etc/systemd/brep-loader.timer | 23 ----------------------- 4 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 etc/systemd/brep-load.service create mode 100644 etc/systemd/brep-load.timer delete mode 100644 etc/systemd/brep-loader.service delete mode 100644 etc/systemd/brep-loader.timer (limited to 'etc/systemd') diff --git a/etc/systemd/brep-load.service b/etc/systemd/brep-load.service new file mode 100644 index 0000000..34a7c9a --- /dev/null +++ b/etc/systemd/brep-load.service @@ -0,0 +1,9 @@ +[Unit] +Description=brep repository loader service + +[Service] +Type=oneshot +ExecStart=/home/brep/install/bin/brep-load /home/brep/config/brep-load.conf + +[Install] +WantedBy=default.target diff --git a/etc/systemd/brep-load.timer b/etc/systemd/brep-load.timer new file mode 100644 index 0000000..713cb31 --- /dev/null +++ b/etc/systemd/brep-load.timer @@ -0,0 +1,23 @@ +[Unit] +Description=brep repository loader timer +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +Unit=brep-load.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 diff --git a/etc/systemd/brep-loader.service b/etc/systemd/brep-loader.service deleted file mode 100644 index dec7944..0000000 --- a/etc/systemd/brep-loader.service +++ /dev/null @@ -1,9 +0,0 @@ -[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 deleted file mode 100644 index 22ff22b..0000000 --- a/etc/systemd/brep-loader.timer +++ /dev/null @@ -1,23 +0,0 @@ -[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 -- cgit v1.1