summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-11-27 14:44:56 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-11-27 14:44:56 +0100
commitcda60574b15fc2bbb6f0fee2b6fbfd24afed2948 (patch)
tree4cd18b3939a9f84f80db12bd3971ced142cc6d6b /server
parentdb3d2904f2fe611d74a09cdfac6e0b01ca9c831c (diff)
server: add git.service systemdHEADmaster
Diffstat (limited to 'server')
-rw-r--r--server/git.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/git.service b/server/git.service
new file mode 100644
index 0000000..d86c8ad
--- /dev/null
+++ b/server/git.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Start Git Daemon
+
+[Service]
+ExecStart=/usr/bin/git daemon --base-path=/var/lib/gitolite3/repositories --reuseaddr /var/lib/gitolite3/repositories
+
+Restart=always
+RestartSec=500ms
+
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=git-daemon
+
+User=gitdaemon
+Group=gitolite3
+
+[Install]
+WantedBy=multi-user.target