summaryrefslogtreecommitdiff
path: root/roles/gitserver/files/git-daemon.service
blob: e08d066f8b57042b494e2561c5ed650f2f88ea64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Git Daemon Instance

[Service]
User=git
# The '-' is to ignore non-zero exit statuses
ExecStart=-/usr/lib/git-core/git-daemon --inetd --base-path=/srv/git
StandardInput=socket
StandardOutput=inherit
StandardError=journal
ProtectSystem=full
ProtectHome=on
PrivateDevices=on
NoNewPrivileges=on