asilenkov 2dd7f39213 [Docker] Fix upstart ans sysvinit scripts for ubuntu
Fix the way hyperkube starts for sysv and upstart

Change-Id: If682033af5f5d58b64cec463d6d379bf79b06c8e
2016-08-04 19:55:04 +03:00

33 lines
753 B
Plaintext

description "Kube-Proxy service"
author "@jainvipin"
# respawn
# start in conjunction with etcd
start on started etcd
stop on stopping etcd
pre-start script
# see also https://github.com/jainvipin/kubernetes-start
KUBE_PROXY=/opt/bin/$UPSTART_JOB
if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB
fi
if [ -f $KUBE_PROXY ]; then
exit 0
fi
exit 22
end script
script
# modify these in /etc/default/$UPSTART_JOB (/etc/default/docker)
KUBE_PROXY=/opt/bin/$UPSTART_JOB
KUBE_PROXY_OPTS=""
if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB
fi
exec $KUBE_PROXY proxy $KUBE_PROXY_OPTS
end script
start on runlevel [235]
stop on runlevel [016]