[pmon] Fix chassis_db_init exit not being expected (#9858)

- Why I did it
Error log was shown on switches during boot
pmon#supervisord 2021-12-22 04:27:16,709 INFO exited: chassis_db_init (exit status 0; not expected)

- How I did it
Add exit code zero as an expected exit code and also disable autorestart.

- How to verify it
Boot the switch and ensure the above log line does not appear.
This commit is contained in:
Alexander Allen 2022-02-15 03:51:24 -05:00 committed by Arvindsrinivasan Lakshmi Narasimhan
parent 127a93c201
commit 212cdfbe80

View File

@ -45,7 +45,8 @@ dependent_startup_wait_for=rsyslogd:running
command=/usr/local/bin/chassis_db_init
priority=3
autostart=false
autorestart=unexpected
autorestart=false
exitcodes=0
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=10