summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-06-10 15:20:32 +0000
committerAchim Gottinger <achim@gentoo.org>2001-06-10 15:20:32 +0000
commit5a634acce0ee04b16ed2d69afcddfcf10e57088b (patch)
tree6ddce82748fe22e1528f366203b553be61edd68d /net-misc
parentRemoved the Gentoo Technologies header (diff)
downloadhistorical-5a634acce0ee04b16ed2d69afcddfcf10e57088b.tar.gz
historical-5a634acce0ee04b16ed2d69afcddfcf10e57088b.tar.bz2
historical-5a634acce0ee04b16ed2d69afcddfcf10e57088b.zip
Changed SERVICE variable from svc-dnscache to dnscache to fix link bug
Added services/dnscache to the dnscache.d symlink Hope the script works now
Diffstat (limited to 'net-misc')
-rwxr-xr-xnet-misc/djbdns/files/svc-dnscache12
1 files changed, 6 insertions, 6 deletions
diff --git a/net-misc/djbdns/files/svc-dnscache b/net-misc/djbdns/files/svc-dnscache
index e36070cba8ea..63d272931e64 100755
--- a/net-misc/djbdns/files/svc-dnscache
+++ b/net-misc/djbdns/files/svc-dnscache
@@ -3,7 +3,7 @@
. /etc/rc.d/config/functions
-SERVICE="svc-dnscache"
+SERVICE="dnscache"
opts="setup start stop"
#this service is designed to *only* run supervised
@@ -32,7 +32,7 @@ setup() {
echo $addrs
echo
read -p "enter IP> " myip
-
+
if [ ! -e /var/lib/supervise/services/dnscache ]
then
einfo ">>> Setting up dnscache..."
@@ -50,11 +50,11 @@ setup() {
echo "Forwarding requests to $myforward"
echo $myforward > /var/lib/supervise/services/dnscache/root/servers/\@
fi
- start
+ start
if [ ! -e /var/log/${SERVICE}.d ]
then
einfo ">>> /var/log/${SERVICE}.d points to the dnscache log..."
- ln -s ${SVCDIR}/log/main /var/log/${SERVICE}.d
+ ln -s ${SVCDIR}/services/dnscache/log/main /var/log/${SERVICE}.d
fi
if [ -e /etc/resolv.conf ]
then
@@ -71,13 +71,13 @@ setup() {
}
start() {
- ebegin "Starting ${SERVICE}"
+ ebegin "Starting svc-${SERVICE}"
ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE}
eend $?
}
stop() {
- ebegin "Stopping ${SERVICE}"
+ ebegin "Stopping svc-${SERVICE}"
if [ -e ${SVCDIR}/control/${SERVICE} ]
then
/usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}/log