diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-02-20 04:09:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-02-20 04:09:19 +0300 |
commit | 4a3f4149c14f2024724434cca82df8e428494374 (patch) | |
tree | 0410db62a63a0dd7779223d2e6c1e8293e123695 /%HOME%/.config/systemd/user/pull-cgit-repos.service | |
parent | add repo pull-shadow (diff) | |
download | cgitize-4a3f4149c14f2024724434cca82df8e428494374.tar.gz cgitize-4a3f4149c14f2024724434cca82df8e428494374.zip |
rename systemd units
Diffstat (limited to '%HOME%/.config/systemd/user/pull-cgit-repos.service')
-rw-r--r-- | %HOME%/.config/systemd/user/pull-cgit-repos.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/%HOME%/.config/systemd/user/pull-cgit-repos.service b/%HOME%/.config/systemd/user/pull-cgit-repos.service new file mode 100644 index 0000000..838afec --- /dev/null +++ b/%HOME%/.config/systemd/user/pull-cgit-repos.service @@ -0,0 +1,11 @@ +[Unit] +Description=Pull cgit repositories +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 |