aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/systemd/cgitize.service
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-27 23:17:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-29 00:45:48 +0300
commit5a792fee1335ea60ca6930dddb6080bcf869213d (patch)
treefa084df3b07301fd72c8c210fbf9b23e90df0f53 /systemd/cgitize.service
parentrename the project to "cgitize" (diff)
downloadcgitize-5a792fee1335ea60ca6930dddb6080bcf869213d.tar.gz
cgitize-5a792fee1335ea60ca6930dddb6080bcf869213d.zip
further renaming work
Diffstat (limited to 'systemd/cgitize.service')
-rw-r--r--systemd/cgitize.service13
1 files changed, 13 insertions, 0 deletions
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