Changeset - ccbb7ea2b203
[Not reviewed]
default
0 2 0
Marcin Kuzminski - 15 years ago 2010-08-27 15:25:23
marcin@python-works.com
another bugfix to init scripts
2 files changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
hg_app_daemon
Show inline comments
 
@@ -43,7 +43,8 @@ start() {
 

	
 
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
hg_app_daemon2
Show inline comments
 
@@ -45,8 +45,9 @@ case "$1" in
 
        --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
0 comments (0 inline, 0 general)