aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.config/systemd/user/pull-cgit-repos.service
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-02-20 04:09:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-02-20 04:09:19 +0300
commit4a3f4149c14f2024724434cca82df8e428494374 (patch)
tree0410db62a63a0dd7779223d2e6c1e8293e123695 /%HOME%/.config/systemd/user/pull-cgit-repos.service
parentadd repo pull-shadow (diff)
downloadcgitize-4a3f4149c14f2024724434cca82df8e428494374.tar.gz
cgitize-4a3f4149c14f2024724434cca82df8e428494374.zip
rename systemd units
Diffstat (limited to '%HOME%/.config/systemd/user/pull-cgit-repos.service')
-rw-r--r--%HOME%/.config/systemd/user/pull-cgit-repos.service11
1 files changed, 11 insertions, 0 deletions
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