Skip to content

Commit 33d0645

Browse files
author
Carlos Bautista
committed
Merge pull request #43 from cbautista1002/map_in_supervisor
Add map to supervisor
2 parents 67869c3 + c09463e commit 33d0645

2 files changed

Lines changed: 13 additions & 85 deletions

File tree

app/src/etc/init.d/MAP_Server

Lines changed: 0 additions & 83 deletions
This file was deleted.

app/src/etc/supervisord.conf

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,24 @@ redirect_stderr=true
1818
command=/usr/sbin/httpd -DFOREGROUND
1919
process_name = httpd
2020
autostart=true ; start at supervisord start (default: true)
21-
autorestart=true ; retstart at unexpected quit (default: true)
21+
autorestart=true ; restart at unexpected quit (default: true)
2222
startretries=3 ; max # of serial start failures (default 3)
2323

2424
[program:mysql]
2525
command = /usr/bin/mysqld_safe --user=mysql
2626
stdout_logfile=/var/log/mysqld.log
2727
stderr_logfile=/var/log/mysqld.log
2828
autostart=true ; start at supervisord start (default: true)
29-
autorestart=true ; retstart at unexpected quit (default: true)
29+
autorestart=true ; restart at unexpected quit (default: true)
3030
startretries=3 ; max # of serial start failures (default 3)
31+
32+
[program:map]
33+
command = python -u MAPServer.py ; -u is to not buffer output
34+
directory=/home/bdt/map/src/map_backend_server/
35+
stdout_logfile=/var/log/MAPServer.log
36+
stderr_logfile=/var/log/MAPServer.log
37+
autostart=false ; start at supervisord start (default: true)
38+
autorestart=false ; restart at unexpected quit (default: true)
39+
startsecs=3 ; seconds program needs to stay running for successful start (default: 1)
40+
stopasgroup=true ; xyz
41+
killasgroup=true ; xyz

0 commit comments

Comments
 (0)