#!/bin/sh
# chkconfig: 2345 90 10
# description: UTM Billing System DHCP server control tool

### BEGIN INIT INFO
# Provides: utm5_dhcpv6
# Required-Start: $utm5_core $syslog
# Required-Stop: $utm5_core $syslog
# Should-Start: $network $time
# Should-Stop: $network $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: utm5_dhcpv6
# Description: UTM Billing System DHCP server control tool
### END INIT INFO

utm_exec=safe_utm5_dhcpv6
err_log=/netup/utm5/log/dhcpv6_main.log
exec_dir=/netup/utm5/bin
pid_file=/var/run/utm5_dhcpdv6.pid
safe_pid_file=/var/run/safe_utm5_dhcpdv6.pid


case "$1" in
start)
        if [ -x $exec_dir/$utm_exec ];
                then
            echo "Starting utm5_dhcpdv6"
                        $exec_dir/$utm_exec start 2>&1 &
                else
                        echo $exec_dir/$utm_exec no such file
        fi
                ;;
stop)
        echo "Stopping utm5_dhcpdv6"
                        $exec_dir/$utm_exec stop 2>&1 &
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        exit 64
        ;;
esac
