summaryrefslogtreecommitdiffstats
path: root/roles/grokmirror/templates/grokmirror.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/grokmirror/templates/grokmirror.service')
-rw-r--r--roles/grokmirror/templates/grokmirror.service10
1 files changed, 10 insertions, 0 deletions
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