From 3fec968f5d22e2bbedfee90e2d38f632b86f96de Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 25 Jun 2013 18:45:55 +0100 Subject: [PATCH] Fix pid file handling for tile services --- cookbooks/tile/templates/default/replicate.init.erb | 4 ++-- cookbooks/tile/templates/default/update-lowzoom.init.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cookbooks/tile/templates/default/replicate.init.erb b/cookbooks/tile/templates/default/replicate.init.erb index d2200f87a..b7c6220fb 100644 --- a/cookbooks/tile/templates/default/replicate.init.erb +++ b/cookbooks/tile/templates/default/replicate.init.erb @@ -3,11 +3,11 @@ # DO NOT EDIT - This file is being maintained by Chef start() { - start-stop-daemon --start --chuid tile --background --make-pidfile -pidfile /var/run/replicate.pid --exec /usr/local/bin/replicate + start-stop-daemon --start --chuid tile --background --make-pidfile --pidfile /var/run/replicate.pid --exec /usr/local/bin/replicate } stop() { - start-stop-daemon --stop --retry 300 --pidfile /var/run/replicate.pid --exec /usr/local/bin/replicate + start-stop-daemon --stop --retry 300 --pidfile /var/run/replicate.pid } case "$1" in diff --git a/cookbooks/tile/templates/default/update-lowzoom.init.erb b/cookbooks/tile/templates/default/update-lowzoom.init.erb index 3439f09b6..8fe1fa364 100644 --- a/cookbooks/tile/templates/default/update-lowzoom.init.erb +++ b/cookbooks/tile/templates/default/update-lowzoom.init.erb @@ -3,11 +3,11 @@ # DO NOT EDIT - This file is being maintained by Chef start() { - start-stop-daemon --start --chuid tile --background --make-pidfile -pidfile /var/run/update-lowzoom-<%= @style %>.pid --exec /usr/local/bin/update-lowzoom-<%= @style %> + start-stop-daemon --start --chuid tile --background --make-pidfile --pidfile /var/run/update-lowzoom-<%= @style %>.pid --exec /usr/local/bin/update-lowzoom-<%= @style %> } stop() { - start-stop-daemon --stop --retry 300 --pidfile /var/run/update-lowzoom-<%= @style %>.pid --exec /usr/local/bin/update-lowzoom-<%= @style %> + start-stop-daemon --stop --retry 300 --pidfile /var/run/update-lowzoom-<%= @style %>.pid } case "$1" in -- 2.39.5