mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
fix incorrect upstart script for ubuntu
This commit is contained in:
parent
7324cd68d2
commit
3e9905bb07
@ -69,22 +69,22 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
fail_unless_root
|
fail_unless_root
|
||||||
log_begin_msg "Starting $FLANNEL_DESC: $BASE"
|
log_begin_msg "Starting $FLANNEL_DESC: $BASE"
|
||||||
$KUBE_APISERVER_START
|
$FLANNEL_START
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
fail_unless_root
|
fail_unless_root
|
||||||
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
||||||
$KUBE_APISERVER_STOP
|
$FLANNEL_STOP
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart | force-reload)
|
restart | force-reload)
|
||||||
fail_unless_root
|
fail_unless_root
|
||||||
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
||||||
$KUBE_APISERVER_STOP
|
$FLANNEL_STOP
|
||||||
$KUBE_APISERVER_START
|
$FLANNEL_START
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ set -e
|
|||||||
# Should-Stop:
|
# Should-Stop:
|
||||||
# Default-Start:
|
# Default-Start:
|
||||||
# Default-Stop:
|
# Default-Stop:
|
||||||
# Short-Description: Start kube-controller-managerservice
|
# Short-Description: Start kube-controller-manager service
|
||||||
# Description:
|
# Description:
|
||||||
# http://www.github.com/GoogleCloudPlatform/Kubernetes
|
# http://www.github.com/GoogleCloudPlatform/Kubernetes
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
@ -59,7 +59,7 @@ KUBE_CONTROLLER_MANAGER_START="start-stop-daemon
|
|||||||
--make-pidfile \
|
--make-pidfile \
|
||||||
--pidfile $KUBE_CONTROLLER_MANAGER_PIDFILE \
|
--pidfile $KUBE_CONTROLLER_MANAGER_PIDFILE \
|
||||||
-- $KUBE_CONTROLLER_MANAGER_OPTS \
|
-- $KUBE_CONTROLLER_MANAGER_OPTS \
|
||||||
>> "$KUBE_CONTROLLER_MANAGER_LOGFILE" 2>&1
|
>> $KUBE_CONTROLLER_MANAGER_LOGFILE 2>&1"
|
||||||
|
|
||||||
KUBE_CONTROLLER_MANAGER_STOP="start-stop-daemon \
|
KUBE_CONTROLLER_MANAGER_STOP="start-stop-daemon \
|
||||||
--stop \
|
--stop \
|
||||||
|
@ -69,22 +69,22 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
fail_unless_root
|
fail_unless_root
|
||||||
log_begin_msg "Starting $FLANNEL_DESC: $BASE"
|
log_begin_msg "Starting $FLANNEL_DESC: $BASE"
|
||||||
$KUBE_APISERVER_START
|
$FLANNEL_START
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
fail_unless_root
|
fail_unless_root
|
||||||
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
||||||
$KUBE_APISERVER_STOP
|
$FLANNEL_STOP
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart | force-reload)
|
restart | force-reload)
|
||||||
fail_unless_root
|
fail_unless_root
|
||||||
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
|
||||||
$KUBE_APISERVER_STOP
|
$FLANNEL_STOP
|
||||||
$KUBE_APISERVER_START
|
$FLANNEL_START
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user