Make swssconfig status FATAL when it fails (#1009)
* Make supervisor controlled one-shot program autorestart 0 time, so the status will become FATAL instead of EXITED if failure happens Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Make swssconfig.sh strictly exit on any failure Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Tune startretries, tested in supervisor 3.3.2-1 Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
This commit is contained in:
parent
646e836471
commit
554114cfaa
@ -55,7 +55,8 @@ stderr_logfile=syslog
|
||||
command=/usr/bin/swssconfig.sh
|
||||
priority=7
|
||||
autostart=false
|
||||
autorestart=false
|
||||
autorestart=unexpected
|
||||
startretries=0
|
||||
stdout_logfile=syslog
|
||||
stderr_logfile=syslog
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
function config_acl {
|
||||
if [ -f "/etc/sonic/acl.json" ]; then
|
||||
mkdir -p /etc/swss/config.d/acl
|
||||
|
Loading…
Reference in New Issue
Block a user