edit supermaster

This commit is contained in:
zhuyj17 2017-04-25 08:22:34 +08:00
parent 6b1b96a95b
commit 94af46c740
1 changed files with 10 additions and 2 deletions

View File

@ -122,6 +122,10 @@ do_start_master () {
do_start_proxy () { do_start_proxy () {
if [ "$DISTRIBUTED_GATEWAY" = "True" ]
then
return 1
fi
log_daemon_msg "Starting $DAEMON_NAME_PROXY daemon in $FS_PREFIX" log_daemon_msg "Starting $DAEMON_NAME_PROXY daemon in $FS_PREFIX"
DAEMON_OPTS_PROXY="--port $PROXY_PORT --api-port $PROXY_API_PORT --default-target=http://localhost:8888" DAEMON_OPTS_PROXY="--port $PROXY_PORT --api-port $PROXY_API_PORT --default-target=http://localhost:8888"
start-stop-daemon --start --background --pidfile $PIDFILE_PROXY --make-pidfile --user $DAEMON_USER --chuid $DAEMON_USER --startas $DAEMON_PROXY -- $DAEMON_OPTS_PROXY start-stop-daemon --start --background --pidfile $PIDFILE_PROXY --make-pidfile --user $DAEMON_USER --chuid $DAEMON_USER --startas $DAEMON_PROXY -- $DAEMON_OPTS_PROXY
@ -168,6 +172,10 @@ do_stop_master () {
} }
do_stop_proxy () { do_stop_proxy () {
if [ "$DISTRIBUTED_GATEWAY" = "True" ]
then
return 1
fi
log_daemon_msg "Stopping $DAEMON_NAME_PROXY daemon" log_daemon_msg "Stopping $DAEMON_NAME_PROXY daemon"
start-stop-daemon --stop --quiet --oknodo --remove-pidfile --pidfile $PIDFILE_PROXY --retry 10 start-stop-daemon --stop --quiet --oknodo --remove-pidfile --pidfile $PIDFILE_PROXY --retry 10
log_end_msg $? log_end_msg $?