
When configuring the dir for the pidfiles in our init scripts don't assume the path is /var/run/$NAME. The defaults are now /var/run/nodepool now and could be set to other values as well. Instead of assuming /var/run/$NAME we instead take the dirname of $PIDFILE and configure whatever that dir is instead. Also expose zuulv3 flag to user to toggle the location of pidfile, this changes in nodepool > 0.5.0. Change-Id: I7fff2565f9e77d737c247f204925f66a0e4aabe8 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
12 lines
463 B
Plaintext
12 lines
463 B
Plaintext
<% if @statsd_host != nil && @statsd_host != "" -%>
|
|
export STATSD_HOST=<%= @statsd_host %>
|
|
export STATSD_PORT=8125
|
|
<% end -%>
|
|
<% @environment.keys.sort.each do |key| -%>
|
|
export <%= key %>='<%= @environment[key] %>'
|
|
<% end -%>
|
|
<% if @zuulv3 -%>
|
|
PIDFILE=/var/run/nodepool/nodepool-builder.pid
|
|
<% end -%>
|
|
DAEMON_ARGS="-c /etc/nodepool/nodepool.yaml -l /etc/nodepool/builder-logging.conf --build-workers <%= @build_workers %> --upload-workers <%= @upload_workers %>"
|