This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ez-ipupdate starting automatically at boot?

I have STF and did not find it(i probably missed it so if someone has a link that would gbe great)..i am trying to figure out how to make the ez-ipupdate dyndns client start automatically at boot time.  I have had a spat of power outages that have outlasted the 90 minute runtime of my ups.  It's a pain having to manually reinitialize the script..[:)]


This thread was automatically locked due to age.
Parents
  • I personally use ddclient on my 4.022 boxen, and the startup script for it is in /etc/rc.d/ddclient. and the script looks like this:

    #!/bin/sh
    #
    # ddclient      This shell script takes care of starting and stopping
    #               ddclient.
    #
    # chkconfig: 2345 65 35
    # description: ddclient provides support for updating dynamic DNS services.

    [ -f /etc/ddclient.conf ] || exit 0

    PATH=/usr/sbin:/root/bin:${PATH}
    COLUMNS=9999
    export PATH COLUMNS

    program=ddclient
    # See how we were called.
    case "$1" in
      start)
            # Start daemons.
            echo -n "Starting ddclient: "
            ddclient -daemon 300
            echo
            ;;
      stop)
            # Stop daemons.
            echo -n "Shutting down ddclient: "
            kill `ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`
            echo
            ;;
      restart)
            $0 stop
            $0 start
            ;;
      status)
            pids=`ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`
            if test "$pids"
            then
                    for p in $pids
                    do
                            echo "$program (pid $p) is running"
                    done
            else
                    echo "$program is stopped"
            fi
    ;;
      *)
            echo "Usage: ddclient {start|stop|restart|status}"
            exit 1
    esac

    exit 0

    Hope this helps a bit. 
Reply
  • I personally use ddclient on my 4.022 boxen, and the startup script for it is in /etc/rc.d/ddclient. and the script looks like this:

    #!/bin/sh
    #
    # ddclient      This shell script takes care of starting and stopping
    #               ddclient.
    #
    # chkconfig: 2345 65 35
    # description: ddclient provides support for updating dynamic DNS services.

    [ -f /etc/ddclient.conf ] || exit 0

    PATH=/usr/sbin:/root/bin:${PATH}
    COLUMNS=9999
    export PATH COLUMNS

    program=ddclient
    # See how we were called.
    case "$1" in
      start)
            # Start daemons.
            echo -n "Starting ddclient: "
            ddclient -daemon 300
            echo
            ;;
      stop)
            # Stop daemons.
            echo -n "Shutting down ddclient: "
            kill `ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`
            echo
            ;;
      restart)
            $0 stop
            $0 start
            ;;
      status)
            pids=`ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`
            if test "$pids"
            then
                    for p in $pids
                    do
                            echo "$program (pid $p) is running"
                    done
            else
                    echo "$program is stopped"
            fi
    ;;
      *)
            echo "Usage: ddclient {start|stop|restart|status}"
            exit 1
    esac

    exit 0

    Hope this helps a bit. 
Children
  • honestly...not at all..rofl..that is all greek to me..for my teamspeak server(agains newb here) i used webmin to add it ./server_linux command to the bootup routines(i ahve no idea where it put it to make it do that)...since the startup command for ez-ipupdate is /etc/rc.d/dyndns start   jsut need to know what file i can put that in to make sure it is intialized upon bootup...