From 4a3f4149c14f2024724434cca82df8e428494374 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 20 Feb 2019 04:09:19 +0300 Subject: rename systemd units --- %HOME%/.config/systemd/user/pull-cgit-repos.service | 11 +++++++++++ %HOME%/.config/systemd/user/pull-cgit-repos.timer | 10 ++++++++++ %HOME%/.config/systemd/user/update-cgit-repos.service | 11 ----------- %HOME%/.config/systemd/user/update-cgit-repos.timer | 10 ---------- 4 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 %HOME%/.config/systemd/user/pull-cgit-repos.service create mode 100644 %HOME%/.config/systemd/user/pull-cgit-repos.timer delete mode 100644 %HOME%/.config/systemd/user/update-cgit-repos.service delete mode 100644 %HOME%/.config/systemd/user/update-cgit-repos.timer diff --git a/%HOME%/.config/systemd/user/pull-cgit-repos.service b/%HOME%/.config/systemd/user/pull-cgit-repos.service new file mode 100644 index 0000000..838afec --- /dev/null +++ b/%HOME%/.config/systemd/user/pull-cgit-repos.service @@ -0,0 +1,11 @@ +[Unit] +Description=Pull cgit repositories +Wants=ssh-agent.service + +[Service] +Type=simple +WorkingDirectory=/srv/cgit-repos +ExecStartPre=/usr/bin/truncate --size=0K -- /srv/cgit-repos/pull.log +ExecStart=/srv/cgit-repos/pull.sh +StandardOutput=file:/srv/cgit-repos/pull.log +StandardError=inherit diff --git a/%HOME%/.config/systemd/user/pull-cgit-repos.timer b/%HOME%/.config/systemd/user/pull-cgit-repos.timer new file mode 100644 index 0000000..de56c5a --- /dev/null +++ b/%HOME%/.config/systemd/user/pull-cgit-repos.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Pull cgit repositories periodically + +[Timer] +Persistent=false +OnCalendar=daily +AccuracySec=1 + +[Install] +WantedBy=timers.target diff --git a/%HOME%/.config/systemd/user/update-cgit-repos.service b/%HOME%/.config/systemd/user/update-cgit-repos.service deleted file mode 100644 index 9494a07..0000000 --- a/%HOME%/.config/systemd/user/update-cgit-repos.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Run pull.sh -Wants=ssh-agent.service - -[Service] -Type=simple -WorkingDirectory=/srv/cgit-repos -ExecStartPre=/usr/bin/truncate --size=0K -- /srv/cgit-repos/pull.log -ExecStart=/srv/cgit-repos/pull.sh -StandardOutput=file:/srv/cgit-repos/pull.log -StandardError=inherit diff --git a/%HOME%/.config/systemd/user/update-cgit-repos.timer b/%HOME%/.config/systemd/user/update-cgit-repos.timer deleted file mode 100644 index b39b357..0000000 --- a/%HOME%/.config/systemd/user/update-cgit-repos.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Run pull.sh periodically - -[Timer] -Persistent=false -OnCalendar=daily -AccuracySec=1 - -[Install] -WantedBy=timers.target -- cgit v1.2.3