From bcf7d6b6c808833712a1ccac2d8e3848ca701a35 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 13 Aug 2019 16:26:59 +0300 Subject: restore systemd files --- systemd/pull-cgit-repos.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 systemd/pull-cgit-repos.service (limited to 'systemd/pull-cgit-repos.service') diff --git a/systemd/pull-cgit-repos.service b/systemd/pull-cgit-repos.service new file mode 100644 index 0000000..1951247 --- /dev/null +++ b/systemd/pull-cgit-repos.service @@ -0,0 +1,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 -- cgit v1.2.3