From cda60574b15fc2bbb6f0fee2b6fbfd24afed2948 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 27 Nov 2024 14:44:56 +0100 Subject: server: add git.service systemd --- server/git.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 server/git.service 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 -- cgit v1.2.3