Show More
@@ -43,7 +43,8 b' start() {' | |||||
43 |
|
43 | |||
44 | stop() { |
|
44 | stop() { | |
45 | ebegin "Stopping $APP_NAME" |
|
45 | ebegin "Stopping $APP_NAME" | |
46 |
start-stop-daemon - |
|
46 | start-stop-daemon -d $APP_PATH \ | |
|
47 | --stop --quiet \ | |||
47 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" |
|
48 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" | |
48 | if [ -f $PID_PATH ]; then |
|
49 | if [ -f $PID_PATH ]; then | |
49 | rm $PID_PATH |
|
50 | rm $PID_PATH |
@@ -45,8 +45,9 b' case "$1" in' | |||||
45 | --exec $DAEMON -- $DAEMON_OPTS |
|
45 | --exec $DAEMON -- $DAEMON_OPTS | |
46 | ;; |
|
46 | ;; | |
47 | stop) |
|
47 | stop) | |
48 |
e |
|
48 | ebegin "Stopping $APP_NAME" | |
49 |
start-stop-daemon - |
|
49 | start-stop-daemon -d $APP_PATH \ | |
|
50 | --stop --quiet \ | |||
50 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" |
|
51 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" | |
51 | if [ -f $PID_PATH ]; then |
|
52 | if [ -f $PID_PATH ]; then | |
52 | rm $PID_PATH |
|
53 | rm $PID_PATH |
General Comments 0
You need to be logged in to leave comments.
Login now