rpms/newscache/devel newscache.init,1.1,1.2 newscache.spec,1.7,1.8

Dmitry Butskoy (buc) fedora-extras-commits at redhat.com
Fri Feb 15 14:57:12 UTC 2008


Author: buc

Update of /cvs/extras/rpms/newscache/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6375

Modified Files:
	newscache.init newscache.spec 
Log Message:



Index: newscache.init
===================================================================
RCS file: /cvs/extras/rpms/newscache/devel/newscache.init,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- newscache.init	3 Nov 2005 11:24:48 -0000	1.1
+++ newscache.init	15 Feb 2008 14:56:32 -0000	1.2
@@ -4,6 +4,14 @@
 # description: NewsCache is a free cache server for USENET News.
 # processname: newscache
 # pidfile: /var/run/newscache.pid
+#
+### BEGIN INIT INFO
+# Provides: newscache
+# Required-Start: $local_fs $remote_fs $network $named
+# Required-Stop: $local_fs $remote_fs $network
+# Short-Description: start and stop NewsCache daemon
+# Description: NewsCache is a free cache server for USENET News.
+### END INIT INFO
 
 # Source function library.
 . /etc/init.d/functions
@@ -12,9 +20,9 @@
 . /etc/sysconfig/network
 
 # Check that networking is up.
-[ "${NETWORKING}" = "no" ] && exit 0
+[ "${NETWORKING}" = "no" ] && exit 1
 
-[ -f /etc/newscache.conf ] || exit 0
+[ -f /etc/newscache.conf ] || exit 6
 
 
 RETVAL=0
@@ -59,20 +67,18 @@
 	status newscache
         RETVAL=$?
 	;;
-  reload)
+  reload|force-reload)
 	reload
 	;;
   restart)
 	restart
 	;;
-  condrestart)
-	if [ -f /var/lock/subsys/newscache ]; then
-	    restart
-	fi
+  condrestart|try-restart)
+	[ -f /var/lock/subsys/newscache ] && restart
 	;;
   *)
 	echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
-	exit 1
+	exit 3
 	;;
 esac
 


Index: newscache.spec
===================================================================
RCS file: /cvs/extras/rpms/newscache/devel/newscache.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- newscache.spec	14 Feb 2008 13:33:48 -0000	1.7
+++ newscache.spec	15 Feb 2008 14:56:32 -0000	1.8
@@ -4,7 +4,7 @@
 Name: 		newscache
 Summary: 	Free cache server for USENET News
 Version: 	1.2
-Release: 	0.5.rc6%{?dist}
+Release: 	0.6.rc6%{?dist}
 Group: 		System Environment/Daemons
 License:	GPLv2+
 URL:		http://www.linuxhacker.at/newscache/
@@ -137,8 +137,11 @@
 
 
 %changelog
+* Fri Feb 15 2008 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.2-0.6.rc6
+- change initscript to comply with the LSB standards
+
 * Thu Feb 14 2008 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.2-0.5.rc6
-- rebuild for F9
+- add patch for gcc43
 
 * Tue Aug 28 2007 Dmitry Butskoy <Dmitry at Butskoy.name>
 - Correct Source0 and Source1 urls




More information about the fedora-extras-commits mailing list