X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fscripts%2Finit.d%2Fhelm-search-engine;h=cda415fdd5a50768839fe54626d68292eee4bee7;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=6b9582cb24f0dd9e6ed5546561214c27c33b099a;hpb=cbcedd8ea841d69bf2f743730c0d4d511bbcb58c;p=helm.git diff --git a/helm/scripts/init.d/helm-search-engine b/helm/scripts/init.d/helm-search-engine index 6b9582cb2..cda415fdd 100755 --- a/helm/scripts/init.d/helm-search-engine +++ b/helm/scripts/init.d/helm-search-engine @@ -17,18 +17,25 @@ NAME=`basename $DAEMON` PIDFILE=/var/run/$NAME.pid do_start () { - echo -n "Starting $DAEMON ... " + echo -n "Starting $DAEMON" start-stop-daemon \ --start --pidfile $PIDFILE --make-pidfile \ --chuid $OWNER --background --exec $DAEMON - echo "done!" + echo "." + echo -n "Starting $DAEMON respawner" + /etc/init.d/daemon_respawner.sh -p $PIDFILE \ -m root@localhost \ + -r http://localhost:58085/help -d `basename $0` & + echo "." } do_stop () { - echo -n "Stopping $DAEMON ... " + echo -n "Stopping $DAEMON respawner" + /etc/init.d/daemon_respawner.sh -d `basename $0` -s + echo "." + echo -n "Stopping $DAEMON" start-stop-daemon --stop --pidfile $PIDFILE && \ (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi) - echo "done!" + echo "." } case "$1" in