#!/bin/sh

case "$1" in
	start)
		echo -n "Starting isconf daemon"
		isconf start
		sleep 10
		echo -n "Running isconf update"
		isconf -r up
  		;;
	stop)
		echo "Stopping isconf daemon"
		isconf stop
  		;;
	restart|force-reload)
		echo "Restarting isconf daemon"
		isconf stop
		sleep 10
		isconf start
  		;;
	*)
  		echo "Usage: $0 {start|stop|restart|force-reload}"
  		exit 1
		;;
esac

exit 0

