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
48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
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 = /var/log/monasca/agent/supervisord.log
|
|
logfile_maxbytes = 50MB
|
|
nodaemon = false
|
|
pidfile = /var/run/monasca-agent-supervisord.pid
|
|
logfile_backups = 10
|
|
environment=PYTHONPATH='/usr/share/monasca/agent',LANG=POSIX
|
|
|
|
[program:collector]
|
|
command=/usr/bin/monasca-collector foreground
|
|
stdout_logfile=NONE
|
|
stderr_logfile=NONE
|
|
priority=999
|
|
startsecs=2
|
|
user=mon-agent
|
|
environment=LC_ALL=POSIX,PYTHONPATH='/usr/share/monasca/agent:$PYTHONPATH'
|
|
|
|
[program:forwarder]
|
|
command=/usr/bin/monasca-forwarder
|
|
stdout_logfile=NONE
|
|
stderr_logfile=NONE
|
|
startsecs=3
|
|
priority=998
|
|
user=mon-agent
|
|
|
|
[program:statsd]
|
|
command=/usr/bin/monasca-statsd
|
|
stdout_logfile=NONE
|
|
stderr_logfile=NONE
|
|
startsecs=3
|
|
priority=998
|
|
user=mon-agent
|
|
|
|
[group:monasca-agent]
|
|
programs=forwarder,collector,statsd
|