Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 565bdaae2fb71158453f8631ee81ed95 > files > 5

firebird-2.1.1.17910.0-2mdv2009.0.src.rpm

--- builds/install/arch-specific/linux/misc/firebird.init.d.mandrake.in	2008-01-22 06:45:19.000000000 -0500
+++ builds/install/arch-specific/linux/misc/firebird.init.d.mandrake.in.oden	2008-07-18 08:49:17.000000000 -0400
@@ -39,18 +39,19 @@
 	echo $MANAGER -pidfile $pidfile -start -forever | su $FBRunUser
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && success || failure
+	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/firebird
 	echo
 	;;
   stop)
-	echo -n "Stopping $FULLNAME "
-
-	if [ -f $pidfile ]
-	then
-	    kill `cat $pidfile`
-	fi
-	RETVAL=$?
-	[ $RETVAL -eq 0 ] && success || failure
-	echo
+        if [ -f $pidfile ]
+        then
+                action "Stopping %s: " "$FULLNAME" kill -TERM `cat $pidfile`
+        else
+                gprintf "$FULLNAME server is stopped"
+                echo
+        fi
+        RETVAL=$?
+        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/firebird
 	;;
   status)
 	if [ -f $pidfile ]