aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/systemd/cgitize.service
blob: c53ee7a491a5c4b3b19d1374c658c89d02af2bdc (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                      
                                                                               

                                              
# 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.toml
StandardOutput=file:%h/var/cgitize/cgitize.log
StandardError=inherit