mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	fix incorrect upstart script for ubuntu
This commit is contained in:
		@@ -69,22 +69,22 @@ case "$1" in
 | 
			
		||||
	start)
 | 
			
		||||
		fail_unless_root
 | 
			
		||||
		log_begin_msg "Starting $FLANNEL_DESC: $BASE"
 | 
			
		||||
        $KUBE_APISERVER_START
 | 
			
		||||
        $FLANNEL_START
 | 
			
		||||
		log_end_msg $?
 | 
			
		||||
		;;
 | 
			
		||||
 | 
			
		||||
	stop)
 | 
			
		||||
		fail_unless_root
 | 
			
		||||
		log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
 | 
			
		||||
		$KUBE_APISERVER_STOP
 | 
			
		||||
		$FLANNEL_STOP
 | 
			
		||||
		log_end_msg $?
 | 
			
		||||
		;;
 | 
			
		||||
 | 
			
		||||
	restart | force-reload)
 | 
			
		||||
		fail_unless_root
 | 
			
		||||
		log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
 | 
			
		||||
		$KUBE_APISERVER_STOP
 | 
			
		||||
		$KUBE_APISERVER_START
 | 
			
		||||
		$FLANNEL_STOP
 | 
			
		||||
		$FLANNEL_START
 | 
			
		||||
		log_end_msg $?
 | 
			
		||||
		;;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,7 @@ KUBE_CONTROLLER_MANAGER_START="start-stop-daemon
 | 
			
		||||
--make-pidfile \
 | 
			
		||||
--pidfile $KUBE_CONTROLLER_MANAGER_PIDFILE \
 | 
			
		||||
-- $KUBE_CONTROLLER_MANAGER_OPTS \
 | 
			
		||||
>> "$KUBE_CONTROLLER_MANAGER_LOGFILE" 2>&1
 | 
			
		||||
>> $KUBE_CONTROLLER_MANAGER_LOGFILE 2>&1"
 | 
			
		||||
 | 
			
		||||
KUBE_CONTROLLER_MANAGER_STOP="start-stop-daemon \
 | 
			
		||||
--stop \
 | 
			
		||||
 
 | 
			
		||||
@@ -69,22 +69,22 @@ case "$1" in
 | 
			
		||||
	start)
 | 
			
		||||
		fail_unless_root
 | 
			
		||||
		log_begin_msg "Starting $FLANNEL_DESC: $BASE"
 | 
			
		||||
        $KUBE_APISERVER_START
 | 
			
		||||
        $FLANNEL_START
 | 
			
		||||
		log_end_msg $?
 | 
			
		||||
		;;
 | 
			
		||||
 | 
			
		||||
	stop)
 | 
			
		||||
		fail_unless_root
 | 
			
		||||
		log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
 | 
			
		||||
		$KUBE_APISERVER_STOP
 | 
			
		||||
		$FLANNEL_STOP
 | 
			
		||||
		log_end_msg $?
 | 
			
		||||
		;;
 | 
			
		||||
 | 
			
		||||
	restart | force-reload)
 | 
			
		||||
		fail_unless_root
 | 
			
		||||
		log_begin_msg "Stopping $FLANNEL_DESC: $BASE"
 | 
			
		||||
		$KUBE_APISERVER_STOP
 | 
			
		||||
		$KUBE_APISERVER_START
 | 
			
		||||
		$FLANNEL_STOP
 | 
			
		||||
		$FLANNEL_START
 | 
			
		||||
		log_end_msg $?
 | 
			
		||||
		;;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user