changeset 431:ccbb7ea2b203

another bugfix to init scripts
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 27 Aug 2010 15:25:23 +0200
parents 41504f4aa96b
children 90512560ed4d
files hg_app_daemon hg_app_daemon2
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hg_app_daemon	Fri Aug 27 14:56:52 2010 +0200
+++ b/hg_app_daemon	Fri Aug 27 15:25:23 2010 +0200
@@ -43,7 +43,8 @@
 
 stop() {
     ebegin "Stopping $APP_NAME"
-    start-stop-daemon --stop --quiet \
+    start-stop-daemon -d $APP_PATH \
+        --stop --quiet \
         --pidfile $PID_PATH || echo "$APP_NAME - Not running!"
     if [ -f $PID_PATH ]; then
         rm $PID_PATH
--- a/hg_app_daemon2	Fri Aug 27 14:56:52 2010 +0200
+++ b/hg_app_daemon2	Fri Aug 27 15:25:23 2010 +0200
@@ -45,8 +45,9 @@
         --exec $DAEMON -- $DAEMON_OPTS
     ;;
   stop)
-    echo "Stopping $APP_NAME"
-    start-stop-daemon --stop --quiet \
+    ebegin "Stopping $APP_NAME"
+    start-stop-daemon -d $APP_PATH \
+        --stop --quiet \
         --pidfile $PID_PATH || echo "$APP_NAME - Not running!"
     if [ -f $PID_PATH ]; then
         rm $PID_PATH