]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/templates/default/update-lowzoom.init.erb
8fe1fa36402079e9b9e0c82de13f482568ede38e
[chef.git] / cookbooks / tile / templates / default / update-lowzoom.init.erb
1 #!/bin/bash
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 start() {
6   start-stop-daemon --start --chuid tile --background --make-pidfile --pidfile /var/run/update-lowzoom-<%= @style %>.pid --exec /usr/local/bin/update-lowzoom-<%= @style %>
7 }
8
9 stop() {
10   start-stop-daemon --stop --retry 300 --pidfile /var/run/update-lowzoom-<%= @style %>.pid
11 }
12
13 case "$1" in
14   start)
15     start
16     ;;
17   stop)
18     stop
19     ;;
20   restart)
21     stop
22     start
23     ;;
24 esac