From be9e20c2d2d8f9bb677056ca08e3f41e2b733333 Mon Sep 17 00:00:00 2001 From: Tharre Date: Sun, 5 Aug 2018 21:09:07 +0200 Subject: Add grokmirror role --- roles/grokmirror/templates/grokmirror.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/grokmirror/templates/grokmirror.service (limited to 'roles/grokmirror/templates/grokmirror.service') diff --git a/roles/grokmirror/templates/grokmirror.service b/roles/grokmirror/templates/grokmirror.service new file mode 100644 index 0000000..88f6819 --- /dev/null +++ b/roles/grokmirror/templates/grokmirror.service @@ -0,0 +1,10 @@ +[Unit] +Description=Run grok-pull for mirroring + +[Service] +Type=oneshot +User={{ git_user }} +Group={{ git_group }} +# 127 = contents modified +SuccessExitStatus=127 +ExecStart=/usr/bin/grok-pull -p -c /etc/grokmirror/repos.conf -- cgit v1.2.3-70-g09d2