За проверку доступности отвечают параметры:
- uptest
- interval
#!/bin/sh # Try to reconfigure pdnsd up when an interface comes up. # Don't bother to do anything for lo. if [ "$IFACE" = lo ]; then exit 0 fi # Only run from ifup. if [ "$MODE" != start ]; then exit 0 fi # psdnsd only cares about inet and inet6. case $ADDRFAM in inet|inet6|NetworkManager) ;; *) exit 0 ;; esac status=$(/usr/sbin/pdnsd-ctl status) # Really only necessary to do anything if psdnsd is not already running echo $status if echo "$status" | grep -q 'running on' then /usr/sbin/pdnsd-ctl server all retest else /etc/init.d/pdnsd start fi exit 0
Комментариев нет:
Отправить комментарий