aboutsummaryrefslogtreecommitdiff
path: root/etc-event.d-local-git-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'etc-event.d-local-git-daemon')
-rw-r--r--etc-event.d-local-git-daemon11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc-event.d-local-git-daemon b/etc-event.d-local-git-daemon
new file mode 100644
index 0000000..e1349a9
--- /dev/null
+++ b/etc-event.d-local-git-daemon
@@ -0,0 +1,11 @@
+start on startup
+stop on shutdown
+
+exec /usr/bin/git-daemon \
+ --user=git --group=git \
+ --user-path=public-git \
+ --verbose \
+ --reuseaddr \
+ --base-path=/srv/example.com/git/repositories/ \
+ /srv/example.com/git/repositories/
+respawn