X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9949b8b0124a95a97ea9cc27e8c98a2844d4eab8..0885511637f2cab59071459563704c79be69249c:/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