9c4a7c2fed
Why I did it "chassis_db_init" task of PMON should be skipped on Mellanox simx platform, since the hardware info which this task is trying to access is not available on simx platforms, It will introduce some error log. How I did it Add the capability for "chassis_db_init" in the template for it can be skipped by adding configuration in "pmon_daemon_control.json". add "skip_chassis_db_init" configuration for simx platforms. use symbol link for "pmon_daemon_control.json" since all the simx platforms share the same configuration How to verify it Build an image and install it on simx platform to check whether "chassis_db_init" task is skipped. Signed-off-by: Kebo Liu <kebol@nvidia.com>
165 lines
4.1 KiB
Django/Jinja
165 lines
4.1 KiB
Django/Jinja
[supervisord]
|
|
logfile_maxbytes=1MB
|
|
logfile_backups=2
|
|
nodaemon=true
|
|
|
|
[eventlistener:dependent-startup]
|
|
command=python3 -m supervisord_dependent_startup
|
|
autostart=true
|
|
autorestart=unexpected
|
|
startretries=0
|
|
exitcodes=0,3
|
|
events=PROCESS_STATE
|
|
buffer_size=1024
|
|
|
|
[eventlistener:supervisor-proc-exit-listener]
|
|
command=/usr/bin/supervisor-proc-exit-listener --container-name pmon
|
|
events=PROCESS_STATE_EXITED,PROCESS_STATE_RUNNING
|
|
autostart=true
|
|
autorestart=unexpected
|
|
buffer_size=1024
|
|
|
|
[program:rsyslogd]
|
|
command=/usr/sbin/rsyslogd -n -iNONE
|
|
priority=1
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
|
|
{% if not skip_chassisd and IS_MODULAR_CHASSIS == 1 %}
|
|
[program:chassisd]
|
|
command=/usr/local/bin/chassisd
|
|
priority=3
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_chassis_db_init %}
|
|
[program:chassis_db_init]
|
|
command=/usr/local/bin/chassis_db_init
|
|
priority=3
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_sensors and HAVE_SENSORS_CONF == 1 %}
|
|
[program:lm-sensors]
|
|
command=/usr/bin/lm-sensors.sh
|
|
priority=3
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=0
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_fancontrol and HAVE_FANCONTROL_CONF == 1 %}
|
|
[program:fancontrol]
|
|
command=/usr/sbin/fancontrol
|
|
priority=4
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_ledd %}
|
|
[program:ledd]
|
|
command={% if API_VERSION == 3 and 'ledd' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/ledd
|
|
priority=5
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_xcvrd %}
|
|
[program:xcvrd]
|
|
{% if delay_xcvrd %}
|
|
command=bash -c "sleep 30 && {% if API_VERSION == 3 and 'xcvrd' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/xcvrd"
|
|
{% else %}
|
|
command={% if API_VERSION == 3 and 'xcvrd' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/xcvrd
|
|
{% endif %}
|
|
priority=6
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_psud %}
|
|
[program:psud]
|
|
command={% if API_VERSION == 3 and 'psud' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/psud
|
|
priority=7
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_syseepromd %}
|
|
[program:syseepromd]
|
|
command={% if API_VERSION == 3 and 'syseepromd' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/syseepromd
|
|
priority=8
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_thermalctld %}
|
|
[program:thermalctld]
|
|
command={% if API_VERSION == 3 and 'thermalctld' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/thermalctld
|
|
priority=9
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
startretries=50
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|
|
|
|
{% if not skip_pcied %}
|
|
[program:pcied]
|
|
command={% if API_VERSION == 3 and 'pcied' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/pcied
|
|
priority=10
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
{% endif %}
|