Skip to content

Commit

Permalink
[pmon]: Enable Autorestart of the daemons in PMON for unexpected exit (
Browse files Browse the repository at this point in the history
…#8358)

Enable Autorestart of the daemons in PMON for unexpected exit
Remove the daemon list from the critical_process which prevent the PMON
from restarting when the individual daemon crashes.
  • Loading branch information
sujinmkang authored Aug 8, 2021
1 parent ceab083 commit ae7fa32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
3 changes: 0 additions & 3 deletions dockers/docker-platform-monitor/critical_processes
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
program:ledd
program:xcvrd
program:psud
16 changes: 8 additions & 8 deletions dockers/docker-platform-monitor/docker-pmon.supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ dependent_startup=true
command=/usr/local/bin/chassisd
priority=3
autostart=false
autorestart=false
autorestart=unexpected
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=0
startsecs=10
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}
Expand Down Expand Up @@ -72,10 +72,10 @@ dependent_startup_wait_for=rsyslogd:running
command={% if API_VERSION == 3 and 'ledd' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/ledd
priority=5
autostart=false
autorestart=false
autorestart=unexpected
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=0
startsecs=10
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}
Expand All @@ -89,10 +89,10 @@ command={% if API_VERSION == 3 and 'xcvrd' not in python2_daemons %}python3 {% e
{% endif %}
priority=6
autostart=false
autorestart=false
autorestart=unexpected
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=0
startsecs=10
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}
Expand All @@ -102,10 +102,10 @@ dependent_startup_wait_for=rsyslogd:running
command={% if API_VERSION == 3 and 'psud' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/psud
priority=7
autostart=false
autorestart=false
autorestart=unexpected
stdout_logfile=syslog
stderr_logfile=syslog
startsecs=0
startsecs=10
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
{% endif %}
Expand Down

0 comments on commit ae7fa32

Please sign in to comment.