]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/gps-tile/templates/default/update.init.erb
Remove lurien role
[chef.git] / cookbooks / gps-tile / templates / default / update.init.erb
index 724ecb164770df1ad38d4a2214214deea5ef9d82..1cf851d2bb2ca2d97d8e772ec0da0b193eba647f 100644 (file)
@@ -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