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
 
@@ -40,13 +40,14 @@ start() {
 
        --exec $DAEMON -- $DAEMON_OPTS
 
    eend $?
 
}
 

	
 
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
 
    fi
 
    eend $?
 
}
hg_app_daemon2
Show inline comments
 
@@ -42,14 +42,15 @@ case "$1" in
 
        --start --quiet\
 
        --pidfile $PID_PATH \
 
        --user $RUN_AS \
 
        --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
 
    fi
 
    ;;
 
  restart)
0 comments (0 inline, 0 general)