use bin_dir var in init scripts
This commit is contained in:
parent
d172457504
commit
99d16913d3
3 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
prog="kubelet"
|
prog="kubelet"
|
||||||
exec="/usr/local/bin/$prog"
|
exec="{{ bin_dir }}/$prog"
|
||||||
pidfile="/var/run/$prog.pid"
|
pidfile="/var/run/$prog.pid"
|
||||||
lockfile="/var/lock/subsys/$prog"
|
lockfile="/var/lock/subsys/$prog"
|
||||||
logfile="/var/log/$prog"
|
logfile="/var/log/$prog"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
DESC="Calico-node Docker"
|
DESC="Calico-node Docker"
|
||||||
NAME=calico-node
|
NAME=calico-node
|
||||||
DAEMON=/usr/local/bin/calicoctl
|
DAEMON={{ bin_dir }}/calicoctl
|
||||||
DAEMON_ARGS=""
|
DAEMON_ARGS=""
|
||||||
DOCKER=$(which docker)
|
DOCKER=$(which docker)
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
prog="calicoctl"
|
prog="calicoctl"
|
||||||
exec="/usr/local/bin/$prog"
|
exec="{{ bin_dir }}/$prog"
|
||||||
dockerexec="$(which docker)"
|
dockerexec="$(which docker)"
|
||||||
logfile="/var/log/$prog"
|
logfile="/var/log/$prog"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue