3 CGIMAP_HOST=<%= @database_host %>; export CGIMAP_HOST
4 CGIMAP_DBNAME=openstreetmap; export CGIMAP_DBNAME
5 CGIMAP_USERNAME=rails; export CGIMAP_USERNAME
6 CGIMAP_PASSWORD=<%= @db_password %>; export CGIMAP_PASSWORD
8 CGIMAP_PIDFILE=<%= @pid_directory + "/cgimap.pid" %>; export CGIMAP_PIDFILE
9 CGIMAP_LOGFILE=<%= @log_directory + "/cgimap.log" %>; export CGIMAP_LOGFILE
11 CGIMAP_MEMCACHE=<%= @memcached_servers.join(",") %>; export CGIMAP_MEMCACHE
12 CGIMAP_RATELIMIT=204800; export CGIMAP_RATELIMIT
13 CGIMAP_MAXDEBT=250; export CGIMAP_MAXDEBT
16 start-stop-daemon --start --chuid rails --exec /usr/bin/openstreetmap-cgimap -- --daemon --port=8000 --instances=30 --pidfile $CGIMAP_PIDFILE
20 start-stop-daemon --stop --retry 300 --pidfile $CGIMAP_PIDFILE
24 start-stop-daemon --stop --signal HUP --pidfile $CGIMAP_PIDFILE