4 # Required-Start: $local_fs $remote_fs
5 # Required-Stop: $local_fs $remote_fs
6 # Default-Start: 2 3 4 5
8 # Short-Description: Invirt development configuration
12 # Author: Invirt project <invirt@mit.edu>
17 GEN_FILES=/srv/repository/conf/distributions
19 . /lib/init/std-init.sh
20 . /lib/init/gen-files.sh
25 # 0 if daemon has been started
26 # 1 if daemon was already running
27 # 2 if daemon could not be started
31 for d in db dists lists pool; do
32 dir="/srv/repository/$d"
34 chown -R repository:nogroup "$dir"
36 reprepro-env export || ret=2
38 invirt-build-conf || ret=2