From 508a6f206a15f50a8b84114dbf11d6a091ea5e7f Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Tue, 18 Mar 2003 15:18:10 +0000 Subject: [PATCH] helm search engine back at work! --- helm/scripts/init.d/helm-search-engine_mowgli | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/helm/scripts/init.d/helm-search-engine_mowgli b/helm/scripts/init.d/helm-search-engine_mowgli index 7864db7cb..836a2eb9d 100755 --- a/helm/scripts/init.d/helm-search-engine_mowgli +++ b/helm/scripts/init.d/helm-search-engine_mowgli @@ -4,7 +4,7 @@ # # by --Zack # Created: Fri, 22 Nov 2002 15:51:25 +0100 -# Last-Modified: Fri, 22 Nov 2002 15:51:25 +0100 +# Last-Modified: Thu, 6 Mar 2003 17:40:16 +0100 DAEMON=/projects/helm/V7_mowgli/helm/searchEngine/searchEngine.opt USAGE="Usage: /etc/init.d/helm-search-engine_mowgli { start | stop | restart }" @@ -23,16 +23,18 @@ NAME=`basename $DAEMON` PIDFILE=/projects/helm/run/"$NAME"_mowgli.pid do_start () { - echo "Starting $DAEMON ..." + echo -n "Starting $DAEMON ... " start-stop-daemon \ --start --pidfile $PIDFILE --make-pidfile \ - --chuid $OWNER --exec $DAEMON + --chuid $OWNER --background --exec $DAEMON + echo "done!" } do_stop () { - echo "Stopping $DAEMON ..." + echo -n "Stopping $DAEMON ... " start-stop-daemon --stop --pidfile $PIDFILE && \ (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi) + echo "done!" } case "$1" in -- 2.39.2