diff options
Diffstat (limited to '')
-rw-r--r-- | %HOME%/.config/systemd/user/update-cgit-repos.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/%HOME%/.config/systemd/user/update-cgit-repos.service b/%HOME%/.config/systemd/user/update-cgit-repos.service new file mode 100644 index 0000000..9494a07 --- /dev/null +++ b/%HOME%/.config/systemd/user/update-cgit-repos.service @@ -0,0 +1,11 @@ +[Unit] +Description=Run pull.sh +Wants=ssh-agent.service + +[Service] +Type=simple +WorkingDirectory=/srv/cgit-repos +ExecStartPre=/usr/bin/truncate --size=0K -- /srv/cgit-repos/pull.log +ExecStart=/srv/cgit-repos/pull.sh +StandardOutput=file:/srv/cgit-repos/pull.log +StandardError=inherit |