source: npl/internetserver/djbdns/start.djbdns @ 072d3d5

gcc484perl-5.22
Last change on this file since 072d3d5 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 334 bytes
Line 
1#!/bin/bash
2COUNT=10
3svc -u /service/dnscache
4while ! netstat -nap | grep 'LISTEN.*dnscache' &> /dev/null; do
5        if [ "$COUNT" == "0" ]; then
6                svc -d /service/dnscache
7                syn3-state dns CAUTION "Startup error"
8                exit 1
9        fi
10        sleep 5
11        (( COUNT-- ))
12        echo "Waiting for djbdns to start ($COUNT)..."
13done
14syn3-state dns OK "Started"
15exit 0
Note: See TracBrowser for help on using the repository browser.