Changeset: 6585656d5f30 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6585656d5f30
Modified Files:
        sql/debian/monetdb5-sql.init.d
Branch: Oct2010
Log Message:

Don't fail when trying to stop an already stopped daemon.
This should fix bug 2723.


diffs (27 lines):

diff -r 54221078e6f3 -r 6585656d5f30 sql/debian/monetdb5-sql.init.d
--- a/sql/debian/monetdb5-sql.init.d    Mon Nov 15 11:22:10 2010 +0100
+++ b/sql/debian/monetdb5-sql.init.d    Tue Nov 16 13:00:45 2010 +0100
@@ -60,7 +60,7 @@
 case "$1" in
   start)
         if [ "$STARTUP" != "yes" ]; then
-            echo "can't start, should be enabled first by change STARTUP to 
yes in /etc/default/monetdb5-sql"
+            echo "can't start, should be enabled first by changing STARTUP to 
yes in /etc/default/monetdb5-sql"
             exit 0
         fi
 
@@ -89,9 +89,11 @@
         fi
         ;;
   stop)
-        echo -n "Stopping $DESC: "
-        start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
-        echo "$NAME."
+        if running ;  then
+            echo -n "Stopping $DESC: "
+            start-stop-daemon --stop --pidfile $PIDFILE --exec $DAEMON
+            echo "$NAME."
+        fi
         ;;
   restart)
         $0 stop
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to