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