# 1 if daemon was already running
# 2 if daemon could not be started
ret=0
+
gen_files || ret=2
+ for d in db dists lists pool; do
+ dir="/srv/repository/$d"
+ if ! [ -e "$dir" ]; then
+ mkdir -p "$dir"
+ fi
+ chown -R repository:nogroup "$dir"
+ done
reprepro-env export || ret=2
+
invirt-build-conf || ret=2
+
daemon -n invirt-dev-git-daemon -- git daemon \
--user=git \
--group=nogroup \
do_start
}
-std_init
\ No newline at end of file
+std_init "$@"