]> git.pld-linux.org Git - packages/ddclient.git/commitdiff
- respect daemon value from config, not hardcoded 300 secs
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 3 May 2010 08:07:48 +0000 (08:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ddclient.init -> 1.8

ddclient.init

index a4331bcbba353f519240bc5a1b4556af7e9aea71..076ab1aa9e17a151f6dae37e39ad4fc9be35a600 100644 (file)
@@ -30,7 +30,8 @@ start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/ddclient ]; then
                msg_starting "Dynamic DNS Client"
-               daemon /usr/sbin/ddclient -daemon 300
+               interval=$(awk -F= '{gsub(/[ \t]*#.*/, "")} $1 == "daemon" {print $2}' /etc/ddclient/ddclient.conf)
+               daemon /usr/sbin/ddclient -daemon ${interval:-300}
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ddclient
        else
This page took 0.280184 seconds and 4 git commands to generate.