if [ -f /usr/local/ddnsnoti/ddnsnoti.exe ] ; then
    echo "DDNS Noti 4.2.4"
else
    echo "/usr/local/ddnsnoti/ddnsnoti.exe is not exist."
    exit 0
fi

case "$1" in
  start|restart)
    killall ddnsnoti.exe
    /bin/sleep 1
    /usr/local/ddnsnoti/ddnsnoti.exe &
    ;;
  stop)
    killall ddnsnoti.exe
    ;;
  *)
    echo "Usage: noti {start|restart|stop}"
    exit 1
esac
