devel/jabberd jabberd,1.3,1.4

Adrian Reber (adrian) fedora-extras-commits at redhat.com
Mon Mar 28 17:35:58 UTC 2005


Author: adrian

Update of /cvs/extras/devel/jabberd
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22646

Modified Files:
	jabberd 
Log Message:
script reads config file from sysconfig



Index: jabberd
===================================================================
RCS file: /cvs/extras/devel/jabberd/jabberd,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jabberd	22 Mar 2005 12:18:13 -0000	1.3
+++ jabberd	28 Mar 2005 17:35:56 -0000	1.4
@@ -8,16 +8,18 @@
 # chkconfig: 2345 85 15
 #
 
-if [ -f /etc/init.d/functions ]; then
-	. /etc/init.d/functions
-elif [ -f /etc/rc.d/init.d/functions ]; then
-	. /etc/rc.d/init.d/functions
-else
-	echo "jabberd: unable to locate functions lib. Cannot continue."
-	exit -1
+# source function library
+. /etc/rc.d/init.d/functions
+
+# pull in sysconfig settings
+[ -f __SYSCONF__/jabberd ] && . __SYSCONF__/jabberd
+
+if [ -z "$START_DAEMONS" ]; then
+	START_DAEMONS="router resolver sm c2s s2s"
 fi
+
 #
-progs="router resolver sm c2s s2s"
+progs="$START_DAEMONS"
 progsPath="__BINDIR__"
 confPath="__ETCDIR__"
 pidPath="__PIDDIR__"




More information about the scm-commits mailing list