blob: 12793d9b0cc937033aadc956ab6ed1bb7f7c2cfe (
plain) (
tree)
|
|
# 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
|