From 4a3f4149c14f2024724434cca82df8e428494374 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 20 Feb 2019 04:09:19 +0300 Subject: rename systemd units --- %HOME%/.config/systemd/user/pull-cgit-repos.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 %HOME%/.config/systemd/user/pull-cgit-repos.service (limited to '%HOME%/.config/systemd/user/pull-cgit-repos.service') 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 -- cgit v1.2.3