Show More
@@ -34,7 +34,7 b' depend() {' | |||||
34 | start() { |
|
34 | start() { | |
35 | ebegin "Starting $APP_NAME" |
|
35 | ebegin "Starting $APP_NAME" | |
36 | start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ |
|
36 | start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ | |
37 | --start --quiet\ |
|
37 | --start --quiet \ | |
38 | --pidfile $PID_PATH \ |
|
38 | --pidfile $PID_PATH \ | |
39 | --user $RUN_AS \ |
|
39 | --user $RUN_AS \ | |
40 | --exec $DAEMON -- $DAEMON_OPTS |
|
40 | --exec $DAEMON -- $DAEMON_OPTS |
@@ -39,13 +39,13 b' case "$1" in' | |||||
39 | start) |
|
39 | start) | |
40 | echo "Starting $APP_NAME" |
|
40 | echo "Starting $APP_NAME" | |
41 | start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ |
|
41 | start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ | |
42 | --start --quiet\ |
|
42 | --start --quiet \ | |
43 | --pidfile $PID_PATH \ |
|
43 | --pidfile $PID_PATH \ | |
44 | --user $RUN_AS \ |
|
44 | --user $RUN_AS \ | |
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