diff options
author | Richard Narron <richard@aaazen.com> | 2020-09-02 18:03:35 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-09-05 08:26:41 +0700 |
commit | fd4bf062e42be3fc485eb0dceb59e1c4c70b7717 (patch) | |
tree | 1b0ce248c85e15fdde2f252a21c2e9bfd4a087d4 /network/ddclient/rc.ddclient | |
parent | a27648dd261d243aac6ba11e2f6b8526b9b1d58d (diff) |
network/ddclient: Updated for version 3.9.1.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ddclient/rc.ddclient')
-rw-r--r-- | network/ddclient/rc.ddclient | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/network/ddclient/rc.ddclient b/network/ddclient/rc.ddclient index cb88a8dd261f1..1601cc6b5adb4 100644 --- a/network/ddclient/rc.ddclient +++ b/network/ddclient/rc.ddclient @@ -10,13 +10,14 @@ case "$1" in start) echo -n "Starting ddclient: " +# ddclient -verbose ddclient echo ;; stop) echo -n "Shutting down ddclient: " #kill $( ps -aef | grep ddclient | grep sleeping | awk '{print$2}' ) - kill -9 $( cat /var/run/ddclient.pid ) + pkill ddclient echo ;; restart) @@ -24,12 +25,13 @@ case "$1" in $0 start ;; status) - pids=$( ps -aef | grep ddclient | grep sleeping | awk '{print$2}' ) + pids=$(pgrep ddclient) if test "$pids" then for p in $pids do echo "ddclient (pid $p) is running." + ps up $p done else echo "ddclient is stopped." |