diff options
author | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
commit | 223ca251f3ce07eb5484be845e631d6ca645b263 (patch) | |
tree | a9e543c45cd0d58c82e39617f602a718d86976c4 /community/radvd/radvd.rc | |
parent | 1fed401c439c264bd92a4c13af1bea0bea458cb4 (diff) |
Tue Apr 10 00:01:08 UTC 2012
Diffstat (limited to 'community/radvd/radvd.rc')
-rw-r--r-- | community/radvd/radvd.rc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/community/radvd/radvd.rc b/community/radvd/radvd.rc index fdd9ee8ce..26ad0dbf4 100644 --- a/community/radvd/radvd.rc +++ b/community/radvd/radvd.rc @@ -8,7 +8,10 @@ NAME='IPv6 Router Advertisement Daemon' DAEMON=/usr/sbin/radvd PIDFILE=${PIDFILE:-/run/${0##*/}.pid} DAEMON_OPTS+=("--pidfile=$PIDFILE") -[[ -r "$PIDFILE" ]] && read PID < "$PIDFILE" + +# check pid file +[[ -r "$PIDFILE" ]] && + read PID < "$PIDFILE" && [[ -n $PID ]] && kill -0 $PID || unset PID case "$1" in start) |