X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9949b8b0124a95a97ea9cc27e8c98a2844d4eab8..0d881c7262ed69a06591d7b29f4f9e370e100a8d:/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 95aeeebd6..1cf851d2b 100644 --- a/cookbooks/gps-tile/templates/default/update.init.erb +++ b/cookbooks/gps-tile/templates/default/update.init.erb @@ -10,6 +10,10 @@ 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