#!/bin/bash
### BEGIN INIT INFO
# Provides:          invirt-dev
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Invirt development configuration
# Description:       
### END INIT INFO

# Author: Invirt project <invirt@mit.edu>

# Do NOT "set -e"

NAME=invirt-dev
GEN_FILES=/srv/repository/conf/distributions

. /lib/init/gen-files.sh

case "$1" in
  start|reload|force-reload|restart)
    log_begin_msg "Reloading config for $PACKAGE"
    gen_files
    reprepro-env export
    log_end_msg $?
    ;;
  stop)
    ;;
  *)
    log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}"
    ;;
esac
