
PIDFILE=@localstatedir_expanded@/bbackupd.pid

case $1 in 

        # SMF arguments (start and restart [really "refresh"])
'start')
        @sbindir_expanded@/bbackupd
        ;;

'restart')
        if [ -f "$PIDFILE" ]; then
                /usr/bin/kill -HUP `/usr/bin/cat $PIDFILE`
        fi
        ;;

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

exit $?

