aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.config/systemd/user/pull.service
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-07-02 04:38:49 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-07-02 04:38:49 +0300
commit9ef25f6edb9a6895df2c3784e9ec4da969bba97a (patch)
tree02137d6b04a766532547fba75a604388f8a9c928 /%HOME%/.config/systemd/user/pull.service
parentinitial commit (diff)
downloadcgitize-9ef25f6edb9a6895df2c3784e9ec4da969bba97a.tar.gz
cgitize-9ef25f6edb9a6895df2c3784e9ec4da969bba97a.zip
add systemd units
Diffstat (limited to '%HOME%/.config/systemd/user/pull.service')
-rw-r--r--%HOME%/.config/systemd/user/pull.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/%HOME%/.config/systemd/user/pull.service b/%HOME%/.config/systemd/user/pull.service
new file mode 100644
index 0000000..6970520
--- /dev/null
+++ b/%HOME%/.config/systemd/user/pull.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Run pull.sh
+Wants=ssh-agent.service
+
+[Service]
+Type=simple
+WorkingDirectory=/srv/git
+ExecStartPre=/usr/bin/truncate --size=0K -- /srv/git/pull.log
+ExecStart=/srv/git/pull.sh
+StandardOutput=file:/srv/git/pull.log
+StandardError=inherit