summaryrefslogtreecommitdiffstats
path: root/network/ddclient/rc.ddclient
diff options
context:
space:
mode:
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
commitfd4bf062e42be3fc485eb0dceb59e1c4c70b7717 (patch)
tree1b0ce248c85e15fdde2f252a21c2e9bfd4a087d4 /network/ddclient/rc.ddclient
parenta27648dd261d243aac6ba11e2f6b8526b9b1d58d (diff)
downloadslackbuilds-fd4bf062e42be3fc485eb0dceb59e1c4c70b7717.tar.gz
slackbuilds-fd4bf062e42be3fc485eb0dceb59e1c4c70b7717.tar.xz
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.ddclient6
1 files changed, 4 insertions, 2 deletions
diff --git a/network/ddclient/rc.ddclient b/network/ddclient/rc.ddclient
index cb88a8dd26..1601cc6b5a 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."