|
Last change
on this file since f33f781 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 9 years ago
|
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
|
File size:
334 bytes
|
| Rev | Line | |
|---|
| [c5c522c] | 1 | #!/bin/bash |
|---|
| 2 | COUNT=10 |
|---|
| 3 | svc -u /service/dnscache |
|---|
| 4 | while ! 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)..." |
|---|
| 13 | done |
|---|
| 14 | syn3-state dns OK "Started" |
|---|
| 15 | exit 0 |
|---|
Note: See
TracBrowser
for help on using the repository browser.