aboutsummaryrefslogtreecommitdiff
path: root/network/inadyn/rc.inadyn
diff options
context:
space:
mode:
authorkchan <kenneth.t.chan@gmail.com>2020-01-04 23:23:05 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-12 08:47:58 +0700
commit86d36a83fe9ca0fda98f6c067ee86763a52f691f (patch)
treecb8f7edab898d51fd37e8c77e4f2b5c4fc44d693 /network/inadyn/rc.inadyn
parent09ef9ebae686bf956f899985a99c9e4ab51badf8 (diff)
network/inadyn: Updated for version 2.5.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/inadyn/rc.inadyn')
-rw-r--r--network/inadyn/rc.inadyn9
1 files changed, 5 insertions, 4 deletions
diff --git a/network/inadyn/rc.inadyn b/network/inadyn/rc.inadyn
index 381ac1b904a67..96d576813646d 100644
--- a/network/inadyn/rc.inadyn
+++ b/network/inadyn/rc.inadyn
@@ -12,22 +12,23 @@ if [ ! -f /etc/inadyn.conf ]; then
fi
PIDFILE=/var/run/inadyn.pid
+SCRIPTNAME=$0
case "$1" in
start)
echo -n "Starting inadyn: /usr/sbin/inadyn"
- /usr/sbin/inadyn
+ /usr/sbin/inadyn --pidfile $PIDFILE
echo
;;
stop)
echo -n "Stopping inadyn... "
kill $( ps ax | grep inadyn | grep Ss | awk '{print $1}' )
- #kill -9 $( cat $PIDFILE 2> /dev/null )
+ rm -f $PIDFILE
echo
;;
restart)
- $0 stop
- $0 start
+ $SCRIPTNAME stop
+ $SCRIPTNAME start
;;
status)
pids=$( ps ax | grep inadyn | grep Ss | awk '{print $1}' )