diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2016-01-26 23:21:32 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-29 07:16:39 +0700 |
commit | b00aabe841eca43207663a830cee6095b3cc8b39 (patch) | |
tree | 84b258cfc1226ce458a5b8344554e8a5af896833 /network/radvd | |
parent | ea7aa1b5788c3348fac857b2ac4ef5bace5475f5 (diff) | |
download | slackbuilds-b00aabe841eca43207663a830cee6095b3cc8b39.tar.gz |
network/radvd: Enhancements to init script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/radvd')
-rw-r--r-- | network/radvd/rc.radvd.new | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/network/radvd/rc.radvd.new b/network/radvd/rc.radvd.new index 9fbc597893..c6936ce35c 100644 --- a/network/radvd/rc.radvd.new +++ b/network/radvd/rc.radvd.new @@ -5,20 +5,22 @@ # Start/stop/restart the radvd daemon. if ! [ -f /proc/net/if_inet6 ]; then - echo "IPv6 support not found, exiting" + echo "IPv6 support not found; exiting..." exit 1 fi radvd_start() { if [ -x /usr/sbin/radvd ]; then - echo "Starting radvd..." + echo "Starting radvd: /usr/sbin/radvd -u daemon -m logfile" echo 1 > /proc/sys/net/ipv6/conf/all/forwarding - /usr/sbin/radvd -u daemon + mkdir -p /var/run/radvd + chown daemon:daemon /var/run/radvd + /usr/sbin/radvd -u daemon -m logfile fi } radvd_stop() { - /bin/kill $(cat /var/run/radvd/radvd.pid) + /bin/kill $(cat /var/run/radvd/radvd.pid 2>/dev/null) 2>/dev/null } radvd_restart() { |