git-selfhost

Self-hosted git server with auto-regenerating static stagit frontend
git clone git://git.deurzen.net/git-selfhost
Log | Files | Refs | README

git-daemon.service (434B)


      1 # https://git-scm.com/book/en/v2/Git-on-the-Server-Git-Daemon
      2 # at: /etc/systemd/system/git-daemon.service
      3 #
      4 #   systemctl enable --now git-daemon
      5 #
      6 
      7 [Unit]
      8 Description=Start Git Daemon
      9 
     10 [Service]
     11 ExecStart=/usr/bin/git daemon --reuseaddr --base-path=/srv/git/ /srv/git/
     12 
     13 Restart=always
     14 RestartSec=500ms
     15 
     16 StandardOutput=syslog
     17 StandardError=syslog
     18 SyslogIdentifier=git-daemon
     19 
     20 User=git
     21 Group=git
     22 
     23 [Install]
     24 WantedBy=multi-user.target