#!/bin/sh

start()
{
	/etc/scripts/set_webpid.sh > /dev/null 2>&1 &
}

stop()
{
      /usr/bin/killall set_webpid.sh > /dev/null 2>&1
}

restart()
{
        stop
        sleep 2
        start&
}

reload()
{
        stop
        sleep 2
        start&
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?
