rpms/xinetd/F-12 xinetd.init,1.13,1.14 xinetd.spec,1.64,1.65

Jan Zeleny jzeleny at fedoraproject.org
Mon Oct 12 10:55:49 UTC 2009


Author: jzeleny

Update of /cvs/extras/rpms/xinetd/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12190

Modified Files:
	xinetd.init xinetd.spec 
Log Message:
update of init script (LSB compliance)


Index: xinetd.init
===================================================================
RCS file: /cvs/extras/rpms/xinetd/F-12/xinetd.init,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- xinetd.init	30 Jan 2008 08:18:42 -0000	1.13
+++ xinetd.init	12 Oct 2009 10:55:48 -0000	1.14
@@ -52,6 +52,10 @@ prog="xinetd"
 start(){
     [ -f /usr/sbin/xinetd ] || exit 5
     [ -f /etc/xinetd.conf ] || exit 6
+	touch /var/run/xinetd.pid > /dev/null 2>&1
+	[ $? -eq 0 ] || exit 4
+	touch /var/lock/subsys/xinetd > /dev/null 2>&1
+	[ $? -eq 0 ] || exit 4
 
     echo -n $"Starting $prog: "
 
@@ -79,6 +83,16 @@ start(){
 stop(){
     [ -f /usr/sbin/xinetd ] || exit 5
     [ -f /etc/xinetd.conf ] || exit 6
+    if [ -f /var/lock/subsys/xinetd ]; then
+		if [ ! -w /var/lock/subsys/xinetd ]; then
+			exit 4
+		fi
+	fi
+    if [ -f /var/run/xinetd.pid ]; then
+		if [ ! -w /var/run/xinetd.pid ]; then
+			exit 4
+		fi
+	fi
 
     echo -n $"Stopping $prog: "
     killproc -p /var/run/xinetd.pid $prog


Index: xinetd.spec
===================================================================
RCS file: /cvs/extras/rpms/xinetd/F-12/xinetd.spec,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -p -r1.64 -r1.65
--- xinetd.spec	17 Sep 2009 20:38:05 -0000	1.64
+++ xinetd.spec	12 Oct 2009 10:55:48 -0000	1.65
@@ -1,7 +1,7 @@
 Summary: A secure replacement for inetd
 Name: xinetd
 Version: 2.3.14
-Release: 25%{?dist}
+Release: 26%{?dist}
 License: xinetd 
 Group: System Environment/Daemons
 Epoch: 2
@@ -119,6 +119,9 @@ fi
 %{_mandir}/*/*
 
 %changelog
+* Mon Oct 12 2009 Jan Zeleny <jzeleny at redhat.com> - 2:2.3.14-26
+- correction of init script (LSB compliance - #528154)
+
 * Thu Sep 17 2009 Jan Zeleny <jzeleny at redhat.com> - 2:2.3.14-25
 - correction of last patch replacing select() with poll()
 




More information about the fedora-extras-commits mailing list