CVS: moonbase/net/bind/init.d named,1.3,1.4

sofar at lunar-linux.org sofar at lunar-linux.org
Mon Aug 18 21:45:43 GMT 2003


Update of /var/cvs/lunar/moonbase/net/bind/init.d
In directory dbguin.lunar-linux.org:/tmp/cvs-serv29326

Modified Files:
	named 
Log Message:
Changing the init.d script from default to custom, this one is a bit more tolerant and lets named make its own pid files. Works better.


Index: named
===================================================================
RCS file: /var/cvs/lunar/moonbase/net/bind/init.d/named,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- named	9 May 2003 19:51:37 -0000	1.3
+++ named	18 Aug 2003 21:45:41 -0000	1.4
@@ -12,5 +12,11 @@
 
 ARGS="-u bind"
 
+start() {
+  pgrep -P 1 named || rm $PIDFILE &> /dev/null
+  echo -n "Starting named:"
+  /usr/sbin/named $ARGS && echo -e $RESULT_OK || echo -e $RESULT_FAIL
+}
+
 . /lib/lsb/init-functions
 




More information about the Lunar-commits mailing list