Create /srv/git when installing invirt-dev if it doesn't exist.
[invirt/packages/invirt-dev.git] / debian / invirt-dev.init
1 #!/bin/bash
2 ### BEGIN INIT INFO
3 # Provides:          invirt-dev
4 # Required-Start:    $local_fs $remote_fs
5 # Required-Stop:     $local_fs $remote_fs
6 # Default-Start:     2 3 4 5
7 # Default-Stop:      0 1 6
8 # Short-Description: Invirt development configuration
9 # Description:       
10 ### END INIT INFO
11
12 # Author: Invirt project <invirt@mit.edu>
13
14 # Do NOT "set -e"
15
16 NAME=invirt-dev
17 GEN_FILES=/srv/repository/conf/distributions
18
19 . /lib/init/gen-files.sh
20
21 case "$1" in
22   start|reload|force-reload|restart)
23     log_begin_msg "Reloading config for $PACKAGE"
24     gen_files
25     reprepro-env export
26     invirt-build-conf
27     log_end_msg $?
28     ;;
29   stop)
30     ;;
31   *)
32     log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}"
33     ;;
34 esac