devel/dictd dictd.init,1.2,1.3 dictd.spec,1.26,1.27

Karsten Hopp (karsten) fedora-extras-commits at redhat.com
Mon Aug 13 15:48:31 UTC 2007


Author: karsten

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

Modified Files:
	dictd.init dictd.spec 
Log Message:
- add LSB stuff (#246910)



Index: dictd.init
===================================================================
RCS file: /cvs/extras/devel/dictd/dictd.init,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dictd.init	25 Jan 2005 16:23:09 -0000	1.2
+++ dictd.init	13 Aug 2007 15:47:59 -0000	1.3
@@ -5,6 +5,17 @@
 # processname: dictd
 # config: /etc/dictd.conf
 
+### BEGIN INIT INFO
+# Provides: dictd
+# Required-Start: 
+# Required-Stop: 
+# Default-Start: 
+# Default-Stop: 0 1 2 4 6
+# Short-Description: start|stop|restart|try-restart|status|force-reload dictd
+# Description: control dictionary server which allows clients access to 
+#  dictionary definitions from a set of natural language dictionary databases
+### END INIT INFO
+
 # Source function library.
 . /etc/rc.d/init.d/functions
 
@@ -28,10 +39,11 @@
 	   echo -n $"no dictionaries installed"
 	   echo_failure
 	   echo
-	   RETVAL=1
+	   RETVAL=6
 	fi
     else
-	echo "$0: cannot find $DICTD or it's not executable"
+		echo "$0: cannot find $DICTD or it's not executable"
+		RETVAL=1
     fi
 
     RETVAL=${RETVAL:-$?}
@@ -42,10 +54,9 @@
 {
     echo -n $"Shutting down $prog: "
     killproc $prog
+	RETVAL=$?
     echo
     rm -f $LOCKFILE
-
-    RETVAL=0
 }
 
 function restart
@@ -60,9 +71,18 @@
 		;;
     stop)	stop
 		;;
-    restart)	restart
+    restart | force-reload)	restart
+		;;
+    reload)
+		killproc $prog -HUP
+		RETVAL=$?
+		;;
+    force-reload)
+		killproc $prog -USR1
+		killproc $prog -HUP
+		RETVAL=$?
 		;;
-    condrestart)
+    try-restart | condrestart )
 		RETVAL=0
 		test -f $LOCKFILE && restart
 		;;
@@ -71,7 +91,7 @@
 		RETVAL=$?
 		;;
     *)
-		echo $"Usage: $0 {start|stop|restart|condrestart|status}"
+		echo $"Usage: $0 {start|stop|restart|try-restart|condrestart|reload|force-reloadstatus}"
 		exit 1
 		;;
 esac


Index: dictd.spec
===================================================================
RCS file: /cvs/extras/devel/dictd/dictd.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- dictd.spec	21 Feb 2007 09:55:52 -0000	1.26
+++ dictd.spec	13 Aug 2007 15:47:59 -0000	1.27
@@ -1,7 +1,7 @@
 Summary:   DICT protocol (RFC 2229) command-line client
 Name:      dictd
 Version:   1.9.15
-Release:   9
+Release:   10
 License:   GPL
 Group:     Applications/Internet
 Source0:   ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
@@ -60,6 +60,9 @@
 %config(noreplace) %{_sysconfdir}/sysconfig/dictd
 
 %changelog
+* Mon Aug 13 2007 Karsten Hopp <karsten at redhat.com> 1.9.15-10
+- add LSB stuff (#246910)
+
 * Wed Feb 21 2007 Karsten Hopp <karsten at redhat.com> 1.9.15-9
 - misc. merge review fixes
 




More information about the fedora-extras-commits mailing list