Show More
@@ -45,7 +45,7 b' case "$1" in' | |||||
45 | --exec $DAEMON -- $DAEMON_OPTS |
|
45 | --exec $DAEMON -- $DAEMON_OPTS | |
46 | ;; |
|
46 | ;; | |
47 | stop) |
|
47 | stop) | |
48 |
e |
|
48 | echo "Stopping $APP_NAME" | |
49 | start-stop-daemon -d $APP_PATH \ |
|
49 | start-stop-daemon -d $APP_PATH \ | |
50 | --stop --quiet \ |
|
50 | --stop --quiet \ | |
51 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" |
|
51 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" | |
@@ -55,18 +55,21 b' case "$1" in' | |||||
55 | ;; |
|
55 | ;; | |
56 | restart) |
|
56 | restart) | |
57 | echo "Restarting $APP_NAME" |
|
57 | echo "Restarting $APP_NAME" | |
58 | #stop |
|
58 | ### stop ### | |
59 | start-stop-daemon --stop --quiet \ |
|
59 | echo "Stopping $APP_NAME" | |
|
60 | start-stop-daemon -d $APP_PATH \ | |||
|
61 | --stop --quiet \ | |||
60 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" |
|
62 | --pidfile $PID_PATH || echo "$APP_NAME - Not running!" | |
61 | if [ -f $PID_PATH ]; then |
|
63 | if [ -f $PID_PATH ]; then | |
62 | rm $PID_PATH |
|
64 | rm $PID_PATH | |
63 | fi |
|
65 | fi | |
64 | #start |
|
66 | ### start ### | |
65 | start-stop-daemon --start --quiet\ |
|
67 | echo "Starting $APP_NAME" | |
|
68 | start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ | |||
|
69 | --start --quiet \ | |||
66 | --pidfile $PID_PATH \ |
|
70 | --pidfile $PID_PATH \ | |
67 | --user $RUN_AS \ |
|
71 | --user $RUN_AS \ | |
68 |
--exec $DAEMON -- $DAEMON_OPTS |
|
72 | --exec $DAEMON -- $DAEMON_OPTS | |
69 | ;; |
|
|||
70 | *) |
|
73 | *) | |
71 | echo "Usage: $0 {start|stop|restart}" |
|
74 | echo "Usage: $0 {start|stop|restart}" | |
72 | exit 1 |
|
75 | exit 1 |
General Comments 0
You need to be logged in to leave comments.
Login now