[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 GitHub
parent 1223a7baba
commit 9677401f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,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