From 5a792fee1335ea60ca6930dddb6080bcf869213d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 27 Mar 2021 23:17:14 +0300 Subject: further renaming work --- systemd/cgit-repos.service | 13 ------------- systemd/cgit-repos.timer | 10 ---------- systemd/cgitize.service | 13 +++++++++++++ systemd/cgitize.timer | 10 ++++++++++ 4 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 systemd/cgit-repos.service delete mode 100644 systemd/cgit-repos.timer create mode 100644 systemd/cgitize.service create mode 100644 systemd/cgitize.timer (limited to 'systemd') diff --git a/systemd/cgit-repos.service b/systemd/cgit-repos.service deleted file mode 100644 index 12793d9..0000000 --- a/systemd/cgit-repos.service +++ /dev/null @@ -1,13 +0,0 @@ -# Adjust as you see fit. - -[Unit] -Description=Pull cgit repositories -Wants=ssh-agent.service - -[Service] -Type=simple -WorkingDirectory=%h/workspace/personal/cgit-repos -ExecStartPre=/usr/bin/truncate --size=0K -- %h/var/cgit-repos/cgit-repos.log -ExecStart=/usr/bin/python3 -m cgit.repos.main --config %h/etc/cgit-repos/cgit-repos.conf -StandardOutput=file:%h/var/cgit-repos/cgit-repos.log -StandardError=inherit diff --git a/systemd/cgit-repos.timer b/systemd/cgit-repos.timer deleted file mode 100644 index de56c5a..0000000 --- a/systemd/cgit-repos.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Pull cgit repositories periodically - -[Timer] -Persistent=false -OnCalendar=daily -AccuracySec=1 - -[Install] -WantedBy=timers.target diff --git a/systemd/cgitize.service b/systemd/cgitize.service new file mode 100644 index 0000000..0b517fc --- /dev/null +++ b/systemd/cgitize.service @@ -0,0 +1,13 @@ +# Adjust as you see fit. + +[Unit] +Description=Pull cgit repositories +Wants=ssh-agent.service + +[Service] +Type=simple +WorkingDirectory=%h/workspace/personal/cgitize +ExecStartPre=/usr/bin/truncate --size=0K -- %h/var/cgitize/cgitize.log +ExecStart=/usr/bin/python3 -m cgitize.main --config %h/etc/cgitize/cgitize.conf +StandardOutput=file:%h/var/cgitize/cgitize.log +StandardError=inherit diff --git a/systemd/cgitize.timer b/systemd/cgitize.timer new file mode 100644 index 0000000..de56c5a --- /dev/null +++ b/systemd/cgitize.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Pull cgit repositories periodically + +[Timer] +Persistent=false +OnCalendar=daily +AccuracySec=1 + +[Install] +WantedBy=timers.target -- cgit v1.2.3