diff options
Diffstat (limited to '')
-rw-r--r-- | systemd/cgitize.service | 13 |
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 |