X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f30d59e20c5c515986a14c86afbbc7f164ee1eb0..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/gps-tile/templates/default/update.init.erb diff --git a/cookbooks/gps-tile/templates/default/update.init.erb b/cookbooks/gps-tile/templates/default/update.init.erb index 724ecb164..1cf851d2b 100644 --- a/cookbooks/gps-tile/templates/default/update.init.erb +++ b/cookbooks/gps-tile/templates/default/update.init.erb @@ -3,13 +3,17 @@ # DO NOT EDIT - This file is being maintained by Chef start() { - start-stop-daemon --start --chuid gpstile --chdir /srv/gps-tile.openstreetmap.org --background --make-pidfile --pidfile /var/run/gps-update.pid --exec /src/gps-tile.openstreetmap.org/updater/update + start-stop-daemon --start --chuid gpstile --chdir /srv/gps-tile.openstreetmap.org --background --make-pidfile --pidfile /var/run/gps-update.pid --exec /srv/gps-tile.openstreetmap.org/updater/update } stop() { start-stop-daemon --stop --retry 300 --pidfile /var/run/gps-update.pid } +status() { + start-stop-daemon --status --pidfile /var/run/gps-update.pid +} + case "$1" in start) start @@ -21,4 +25,8 @@ case "$1" in stop || exit $? start ;; + status) + status + exit $? + ;; esac