#!/bin/bash # 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 /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 ;; stop) stop ;; restart) stop || exit $? start ;; status) status exit $? ;; esac