aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/systemd/cgit-repos.service
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--systemd/cgit-repos.service13
1 files changed, 13 insertions, 0 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