diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-06-10 15:46:57 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-06-10 15:46:57 +0000 |
commit | 031b15b3d613121249e0fed5f695aa65d020347b (patch) | |
tree | 3c3eb8a8cb533c7d32d41c41096d2a387fd2bdc8 | |
parent | gzip -f fixes; bzflag now depends on virtual/opengl rather than mesa, libsdl (diff) | |
download | historical-031b15b3d613121249e0fed5f695aa65d020347b.tar.gz historical-031b15b3d613121249e0fed5f695aa65d020347b.tar.bz2 historical-031b15b3d613121249e0fed5f695aa65d020347b.zip |
An svc script for the nameserver
-rw-r--r-- | net-misc/djbdns/files/svc-tinydns | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net-misc/djbdns/files/svc-tinydns b/net-misc/djbdns/files/svc-tinydns new file mode 100644 index 000000000000..a620ebd4d4ab --- /dev/null +++ b/net-misc/djbdns/files/svc-tinydns @@ -0,0 +1,30 @@ +#!/bin/sh +#RCUPDATE:3 4:80:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE="tinydns" +opts="start stop" + +#this service is designed to *only* run supervised + + +start() { + ebegin "Starting svc-${SERVICE}" + ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE} + eend $? +} + +stop() { + ebegin "Stopping svc-${SERVICE}" + if [ -e ${SVCDIR}/control/${SERVICE} ] + then + /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}/log + /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE} + rm ${SVCDIR}/control/${SERVICE} + fi + eend $? +} + +doservice ${@} + |