Skip to content

Commit

Permalink
Merge pull request #43 from cbautista1002/map_in_supervisor
Browse files Browse the repository at this point in the history
Add map to supervisor
  • Loading branch information
Carlos Bautista committed Mar 29, 2015
2 parents 67869c3 + c09463e commit 33d0645
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 85 deletions.
83 changes: 0 additions & 83 deletions app/src/etc/init.d/MAP_Server

This file was deleted.

15 changes: 13 additions & 2 deletions app/src/etc/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,24 @@ redirect_stderr=true
command=/usr/sbin/httpd -DFOREGROUND
process_name = httpd
autostart=true ; start at supervisord start (default: true)
autorestart=true ; retstart at unexpected quit (default: true)
autorestart=true ; restart at unexpected quit (default: true)
startretries=3 ; max # of serial start failures (default 3)

[program:mysql]
command = /usr/bin/mysqld_safe --user=mysql
stdout_logfile=/var/log/mysqld.log
stderr_logfile=/var/log/mysqld.log
autostart=true ; start at supervisord start (default: true)
autorestart=true ; retstart at unexpected quit (default: true)
autorestart=true ; restart at unexpected quit (default: true)
startretries=3 ; max # of serial start failures (default 3)

[program:map]
command = python -u MAPServer.py ; -u is to not buffer output
directory=/home/bdt/map/src/map_backend_server/
stdout_logfile=/var/log/MAPServer.log
stderr_logfile=/var/log/MAPServer.log
autostart=false ; start at supervisord start (default: true)
autorestart=false ; restart at unexpected quit (default: true)
startsecs=3 ; seconds program needs to stay running for successful start (default: 1)
stopasgroup=true ; xyz
killasgroup=true ; xyz

0 comments on commit 33d0645

Please sign in to comment.