1 2 3 4 5 6 7
#!/bin/sh set -e LOG=/var/log/git-daemon test -d "$LOG" || mkdir -p -m2750 "$LOG" && chown gitlog:adm "$LOG" exec chpst -ugitlog svlogd -tt "$LOG"