Merge "Add PREFIX to nodepool service"
This commit is contained in:
commit
2b052973c1
@ -2,4 +2,8 @@
|
|||||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# The prefix used when nodepool was installed. Be sure to update this value
|
||||||
|
# if you are using a virtualenv.
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
||||||
|
@ -2,4 +2,8 @@
|
|||||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# The prefix used when nodepool-builder was installed. Be sure to update this
|
||||||
|
# value if you are using a virtualenv.
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
||||||
|
@ -13,17 +13,18 @@
|
|||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
||||||
DESC="Nodepool"
|
DESC="Nodepool"
|
||||||
NAME=nodepool
|
NAME=nodepool
|
||||||
DAEMON=/usr/local/bin/nodepoold
|
|
||||||
PIDFILE=/var/run/$NAME/$NAME.pid
|
PIDFILE=/var/run/$NAME/$NAME.pid
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
USER=nodepool
|
USER=nodepool
|
||||||
|
|
||||||
# Exit if the package is not installed
|
|
||||||
[ -x "$DAEMON" ] || exit 0
|
|
||||||
|
|
||||||
# Read configuration variable file if it is present
|
# Read configuration variable file if it is present
|
||||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||||
|
|
||||||
|
DAEMON=$PREFIX/bin/nodepoold
|
||||||
|
|
||||||
|
# Exit if the package is not installed
|
||||||
|
[ -x "$DAEMON" ] || exit 0
|
||||||
|
|
||||||
# Load the VERBOSE setting and other rcS variables
|
# Load the VERBOSE setting and other rcS variables
|
||||||
. /lib/init/vars.sh
|
. /lib/init/vars.sh
|
||||||
|
|
||||||
|
@ -13,17 +13,18 @@
|
|||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
||||||
DESC="Nodepool Builder"
|
DESC="Nodepool Builder"
|
||||||
NAME=nodepool-builder
|
NAME=nodepool-builder
|
||||||
DAEMON=/usr/local/bin/nodepool-builder
|
|
||||||
PIDFILE=/var/run/$NAME/$NAME.pid
|
PIDFILE=/var/run/$NAME/$NAME.pid
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
USER=nodepool
|
USER=nodepool
|
||||||
|
|
||||||
# Exit if the package is not installed
|
|
||||||
[ -x "$DAEMON" ] || exit 0
|
|
||||||
|
|
||||||
# Read configuration variable file if it is present
|
# Read configuration variable file if it is present
|
||||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||||
|
|
||||||
|
DAEMON=$PREFIX/bin/nodepool-builder
|
||||||
|
|
||||||
|
# Exit if the package is not installed
|
||||||
|
[ -x "$DAEMON" ] || exit 0
|
||||||
|
|
||||||
# Load the VERBOSE setting and other rcS variables
|
# Load the VERBOSE setting and other rcS variables
|
||||||
. /lib/init/vars.sh
|
. /lib/init/vars.sh
|
||||||
|
|
||||||
|
@ -2,4 +2,8 @@
|
|||||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# The prefix used when nodepool was installed. Be sure to update this value
|
||||||
|
# if you are using a virtualenv.
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
||||||
|
@ -2,4 +2,8 @@
|
|||||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# The prefix used when nodepool-builder was installed. Be sure to update this
|
||||||
|
# value if you are using a virtualenv.
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
DIB_IMAGE_CACHE=/opt/nodepool/cache
|
||||||
|
@ -7,7 +7,7 @@ Type=simple
|
|||||||
User=nodepool
|
User=nodepool
|
||||||
Group=nodepool
|
Group=nodepool
|
||||||
EnvironmentFile=-/etc/sysconfig/nodepool-builder
|
EnvironmentFile=-/etc/sysconfig/nodepool-builder
|
||||||
ExecStart=/usr/bin/nodepool-builder -d -l /etc/nodepool/logging.conf
|
ExecStart=/bin/sh -c "${PREFIX}/bin/nodepool-builder -d -l /etc/nodepool/logging.conf"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -7,7 +7,7 @@ Type=simple
|
|||||||
User=nodepool
|
User=nodepool
|
||||||
Group=nodepool
|
Group=nodepool
|
||||||
EnvironmentFile=-/etc/sysconfig/nodepool
|
EnvironmentFile=-/etc/sysconfig/nodepool
|
||||||
ExecStart=/usr/bin/nodepoold --no-builder -d -l /etc/nodepool/logging.conf
|
ExecStart=/bin/sh -c "${PREFIX}/bin/nodepoold --no-builder -d -l /etc/nodepool/logging.conf"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user