2 # Restart aiccu if connection is down
10 [ -x $BINARY ] ||
exit $NA
11 [ -f $CONFIG ] ||
exit $NA
13 function ping_root
() {
14 [ -x $P6 ] ||
return 127
16 # Get aiccu ipv6_interface
17 INT
=$
(grep ^ipv6_interface
$CONFIG | cut
-d" " -f 2)
19 # Ping f.root-servers.net (Internet Systems Consortium; distributed using anycast)
20 $P6 -I $INT -c 1 f.root-servers.net
>/dev
/null
2>&1
24 function check_aiccu
() {
25 # Restart aiccu if ping fails
26 ping_root || invoke-rc.d aiccu restart