1
0
mirror of https://github.com/djohnlewis/stackdump synced 2024-12-04 23:17:37 +00:00

Fixed Supervisor config file example so it actually stops the components properly.

This commit is contained in:
Samuel Lai 2014-03-04 16:19:30 +11:00
parent ae6e10e6c4
commit db026d2ccc

View File

@ -165,16 +165,20 @@ bc.. [program:stackdump-solr]
command=/path/to/stackdump/start_solr.sh command=/path/to/stackdump/start_solr.sh
priority=900 priority=900
user=stackdump_user user=stackdump_user
stopasgroup=true
stdout_logfile=/path/to/stackdump/solr_stdout.log stdout_logfile=/path/to/stackdump/solr_stdout.log
stderr_logfile=/path/to/stackdump/solr_stderr.log stderr_logfile=/path/to/stackdump/solr_stderr.log
[program:stackdump-web] [program:stackdump-web]
command=/path/to/stackdump/start_web.sh command=/path/to/stackdump/start_web.sh
user=stackdump_user user=stackdump_user
stopasgroup=true
stdout_logfile=/path/to/stackdump/web_stdout.log stdout_logfile=/path/to/stackdump/web_stdout.log
stderr_logfile=/path/to/stackdump/web_stderr.log stderr_logfile=/path/to/stackdump/web_stderr.log
p. Yet another option for those using newer Linux distributions is to create native "systemd service definitions":http://www.freedesktop.org/software/systemd/man/systemd.service.html of type _simple_ for each of the components. p. Supervisor v3.0b1 or later is required, due to the _stopasgroup_ parameter. Without this parameter, Supervisor will not be able to stop the Stackdump components properly as they're being executed from a script.
Yet another option for those using newer Linux distributions is to create native "systemd service definitions":http://www.freedesktop.org/software/systemd/man/systemd.service.html of type _simple_ for each of the components.
h2. Maintenance h2. Maintenance