aboutsummaryrefslogtreecommitdiff
path: root/network/ddclient/rc.ddclient
diff options
context:
space:
mode:
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 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."