#!/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"
