aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/systemd/pull-cgit-repos.service
blob: 1951247c32f6a79aa5f17c83068c48b1f5f99eb5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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/pull-cgit-repos.log
ExecStart=/usr/bin/python3 -m pull.main --config %h/etc/cgit-repos/cgit-repos.conf
StandardOutput=file:%h/var/cgit-repos/pull-cgit-repos.log
StandardError=inherit