b0cc0ccb14
Changed some places to templates to make it possible to change agent user using monasca_setup. There is one place that it is still hard coded The deb creation now uses a hardcoded mon-agent user instead of monasca-agent Change-Id: I8f2ee8903289d74c0397ccf911701c89e7a1b691
49 lines
1003 B
Plaintext
49 lines
1003 B
Plaintext
[supervisorctl]
|
|
serverurl = unix:///var/tmp/monasca-agent-supervisor.sock
|
|
|
|
[unix_http_server]
|
|
file=/var/tmp/monasca-agent-supervisor.sock
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[supervisord]
|
|
minfds = 1024
|
|
minprocs = 200
|
|
loglevel = info
|
|
logfile = {log_dir}/supervisord.log
|
|
logfile_maxbytes = 50MB
|
|
nodaemon = false
|
|
pidfile = /var/run/monasca-agent-supervisord.pid
|
|
logfile_backups = 10
|
|
|
|
[program:collector]
|
|
command={prefix}/bin/monasca-collector foreground
|
|
stdout_logfile=NONE
|
|
stderr_logfile=NONE
|
|
priority=999
|
|
startsecs=2
|
|
user={monasca_user}
|
|
autorestart=true
|
|
|
|
[program:forwarder]
|
|
command={prefix}/bin/monasca-forwarder
|
|
stdout_logfile=NONE
|
|
stderr_logfile=NONE
|
|
startsecs=3
|
|
priority=998
|
|
user={monasca_user}
|
|
autorestart=true
|
|
|
|
[program:statsd]
|
|
command={prefix}/bin/monasca-statsd
|
|
stdout_logfile=NONE
|
|
stderr_logfile=NONE
|
|
startsecs=3
|
|
priority=998
|
|
user={monasca_user}
|
|
autorestart=true
|
|
|
|
[group:monasca-agent]
|
|
programs=forwarder,collector,statsd
|