diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-01 11:28:20 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-01 11:28:20 +0300 |
commit | b71876eb459f55773ad3cb06eede0cfde93bf10c (patch) | |
tree | 162f6b89247c4edb28da81e2cd77913391cf8745 /systemd | |
parent | rename the modules (diff) | |
download | cgitize-b71876eb459f55773ad3cb06eede0cfde93bf10c.tar.gz cgitize-b71876eb459f55773ad3cb06eede0cfde93bf10c.zip |
rename systemd units
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/cgit-repos.service | 13 | ||||
-rw-r--r-- | systemd/cgit-repos.timer (renamed from systemd/pull-cgit-repos.timer) | 0 | ||||
-rw-r--r-- | systemd/pull-cgit-repos.service | 13 |
3 files changed, 13 insertions, 13 deletions
diff --git a/systemd/cgit-repos.service b/systemd/cgit-repos.service new file mode 100644 index 0000000..12793d9 --- /dev/null +++ b/systemd/cgit-repos.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/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/pull-cgit-repos.timer b/systemd/cgit-repos.timer index de56c5a..de56c5a 100644 --- a/systemd/pull-cgit-repos.timer +++ b/systemd/cgit-repos.timer diff --git a/systemd/pull-cgit-repos.service b/systemd/pull-cgit-repos.service deleted file mode 100644 index 1951247..0000000 --- a/systemd/pull-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/pull-cgit-repos.log -ExecStart=/usr/bin/python3 -m pull.main --config %h/etc/cgit-repos/cgit-repos.conf -StandardOutput=file:%h/var/cgit-repos/pull-cgit-repos.log -StandardError=inherit |