2016-10-25 20:52:13 -05:00
|
|
|
[supervisord]
|
2017-05-08 17:43:31 -05:00
|
|
|
logfile_maxbytes=1MB
|
|
|
|
logfile_backups=2
|
2016-10-25 20:52:13 -05:00
|
|
|
nodaemon=true
|
|
|
|
|
2020-05-14 19:43:46 -05:00
|
|
|
[eventlistener:dependent-startup]
|
|
|
|
command=python -m supervisord_dependent_startup
|
|
|
|
autostart=true
|
|
|
|
autorestart=unexpected
|
|
|
|
startretries=0
|
|
|
|
exitcodes=0,3
|
|
|
|
events=PROCESS_STATE
|
|
|
|
|
2019-11-06 13:02:57 -06:00
|
|
|
[eventlistener:supervisor-proc-exit-listener]
|
2020-02-07 14:34:07 -06:00
|
|
|
command=/usr/bin/supervisor-proc-exit-listener --container-name lldp
|
2019-11-06 13:02:57 -06:00
|
|
|
events=PROCESS_STATE_EXITED
|
|
|
|
autostart=true
|
|
|
|
autorestart=unexpected
|
|
|
|
|
2020-05-14 19:43:46 -05:00
|
|
|
[program:rsyslogd]
|
|
|
|
command=/usr/sbin/rsyslogd -n -iNONE
|
2017-05-08 17:43:31 -05:00
|
|
|
priority=1
|
2020-05-14 19:43:46 -05:00
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-14 19:43:46 -05:00
|
|
|
dependent_startup=true
|
2017-05-08 17:43:31 -05:00
|
|
|
|
2020-05-14 19:43:46 -05:00
|
|
|
[program:start]
|
|
|
|
command=/usr/bin/start.sh
|
2017-05-08 17:43:31 -05:00
|
|
|
priority=2
|
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2020-05-14 19:43:46 -05:00
|
|
|
startsecs=0
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-14 19:43:46 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=rsyslogd:running
|
2017-05-08 17:43:31 -05:00
|
|
|
|
2016-10-25 20:52:13 -05:00
|
|
|
[program:lldpd]
|
|
|
|
# https://github.com/vincentbernat/lldpd/commit/9856f2792c301116cc4a3fcfba91b9672ee5db1f
|
|
|
|
# - `-d` means to stay in foreground, log to syslog
|
|
|
|
# - `-dd` means to stay in foreground, log warnings to console
|
|
|
|
# - `-ddd` means to stay in foreground, log warnings and info to console
|
|
|
|
# - `-dddd` means to stay in foreground, log all to console
|
2020-05-11 13:05:44 -05:00
|
|
|
{% if DEVICE_METADATA['localhost']['sub_role'] is defined and DEVICE_METADATA['localhost']['sub_role']|length %}
|
|
|
|
command=/usr/sbin/lldpd -d -I Ethernet* -C Ethernet*
|
|
|
|
{% else %}
|
2018-11-28 00:02:06 -06:00
|
|
|
command=/usr/sbin/lldpd -d -I Ethernet*,eth0 -C eth0
|
2020-05-11 13:05:44 -05:00
|
|
|
{% endif %}
|
2018-03-02 18:46:22 -06:00
|
|
|
priority=3
|
2017-05-08 17:43:31 -05:00
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-14 19:43:46 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
|
|
|
|
|
|
|
[program:waitfor_lldp_ready]
|
|
|
|
command=/usr/bin/waitfor_lldp_ready.sh
|
|
|
|
priority=3
|
|
|
|
autostart=false
|
|
|
|
autorestart=false
|
|
|
|
startsecs=0
|
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=lldpd:running
|
2016-10-25 20:52:13 -05:00
|
|
|
|
2018-03-02 18:46:22 -06:00
|
|
|
[program:lldp-syncd]
|
|
|
|
command=/usr/bin/env python2 -m lldp_syncd
|
|
|
|
priority=4
|
2017-05-08 17:43:31 -05:00
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-14 19:43:46 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=waitfor_lldp_ready:exited
|
2016-10-31 14:25:09 -05:00
|
|
|
|
2018-03-02 18:46:22 -06:00
|
|
|
[program:lldpmgrd]
|
|
|
|
command=/usr/bin/lldpmgrd
|
|
|
|
priority=5
|
2017-05-08 17:43:31 -05:00
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-14 19:43:46 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=lldp-syncd:running
|