projtool.pl: do not attempt to check unset error codes
[girocco.git] / systemd / git@.service
blob17210571a1a07a77230ecaef4106bdd0ab36a3d1
1 [Unit]
2 Description=Git Repository Service
4 # NOTE: The user this runs as need NOT have write access.
5 #       This sample uses the "repo" user, but the user
6 #       "nobody" should work just as well.
8 # IMPORTANT: Git versions >= 1.8.4.2 and < 2.0.0
9 #            unfortunately require write permission into
10 #            the repository when serving a shallow clone!
11 #            YIKES!  (A shallow clone turd gets left
12 #            benind too.)  Advice is to use a version of
13 #            Git either BEFORE 1.8.4.2 or AT LEAST 2.0.0
14 #            to avoid this problem (and the turds).
16 [Service]
17 # If you really want systemd to remember all
18 # failed git daemon connections, remove the
19 # leading '-' from the ExecStart path -- you
20 # probably DO NOT want that though.
21 ExecStart=-/home/repo/repomgr/bin/git-daemon-verify
22 StandardInput=socket
23 StandardOutput=inherit
24 StandardError=syslog
25 User=repo
26 KillMode=mixed
27 # Note that systemd seems to lack the equivalent of xinetd's max_load setting
28 # Note that systemd seems to lack the equivalent of xinetd's per_source setting
29 # These next two settings simulate an xinetd "cps 10 5" setting
30 StartLimitBurst=50
31 StartLimitInterval=5