Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Service] Enable/disable container auto-restart based on configuration. #4073

Merged
merged 35 commits into from
Feb 7, 2020
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e334536
[Event_listener] modify event listener such that it will read the flag
yozhao101 Jan 27, 2020
d0bf16b
[Docker-teamd] Modify supervisord config file to pass the container n…
yozhao101 Jan 27, 2020
5953740
[Docker-telemetry] Modify the supervisord config file to pass container
yozhao101 Jan 27, 2020
5d007b1
[Docker-sflow] Modify supervisord config file to pass container name to
yozhao101 Jan 27, 2020
4439c4a
[Docker-lldp] Modify supervisord config file to pass container name to
yozhao101 Jan 27, 2020
e2ef606
[Docker-swss] Modify supervisord config file to pass container name to
yozhao101 Jan 27, 2020
8a963d6
[Docker-pmon] Modify supervisord config file to pass container name to
yozhao101 Jan 27, 2020
f460268
[Docker-radv] Modify supervisord config file to pass container name to
yozhao101 Jan 27, 2020
e1580dd
[Docker-dhcp-relay] Modify supervisord config file to pass container
yozhao101 Jan 27, 2020
091a550
[Docker-snmp] Modify supervisord config file to pass container name to
yozhao101 Jan 27, 2020
ec4d6ee
[Docker-bgp] Add an event listener, critical process list for contai…
yozhao101 Jan 27, 2020
8161903
[Docker-bgp] Set the maximum restart times to 3 during 20 mins.
yozhao101 Jan 27, 2020
9097988
[Docker-bgp] Add a macro in docker's makefile.
yozhao101 Jan 27, 2020
05170f3
[Docker-syncd-barefoot] Modify the supervisord config file to pass
yozhao101 Jan 27, 2020
0d52f4e
[Docker-syncd-broadcom] Modify supervisord config file to pass container
yozhao101 Jan 27, 2020
4b9b009
[Docker-syncd-cavium] Modify supervisord config file to pass container
yozhao101 Jan 27, 2020
81cb12b
[Docker-syncd-centec] Modify supervisord config file to pass container
yozhao101 Jan 27, 2020
3b84e80
[Docker-syncd-marvell] Modify supervisord config file to pass container
yozhao101 Jan 27, 2020
44970a0
[Docker-syncd-marvell-arm64] Modify supervisord config file to pass
yozhao101 Jan 27, 2020
e73a86d
[Docker-syncd-marvell-armhf] Modify supervisord config file to pass
yozhao101 Jan 27, 2020
bcf43c7
[Docker-syncd-mellanox] Modify supervisord config file to pass container
yozhao101 Jan 27, 2020
cbebfe0
[Docker-syncd-nephos] Modify the supervisord config file to pass
yozhao101 Jan 27, 2020
b8a2f39
[Event listener] Add '=' for getopt parameters.
yozhao101 Jan 28, 2020
5dcb1ec
[Event-listener] Reorganize the import commands in event listener.
yozhao101 Jan 28, 2020
b30a5a2
[Docker-bgp] Delete all the relevant files of auto-restart feature.
yozhao101 Jan 28, 2020
51cdf73
[Docker-dhcp-relay] Pass container name as paramter in sampled generated
yozhao101 Jan 28, 2020
6a2932b
[Event-listener] Add the logic to handle if the container name is not
yozhao101 Jan 29, 2020
2457dbf
[Event-listener] Change the exit code.
yozhao101 Jan 29, 2020
5e6ab1f
[Event-listener] Change the exit code from 1 to 2.
yozhao101 Jan 29, 2020
693fd78
[Event-listener] Change the exit code from 2 to 1 in line 30.
yozhao101 Jan 29, 2020
324dd4f
[Event-listener] Add three periods in the line 61.
yozhao101 Jan 29, 2020
8201389
[Event-listener] Add logic to decide the invalid container name.
yozhao101 Jan 29, 2020
3df1a3d
[Event-listener] Change the logic to avoid invalid container name.
yozhao101 Jan 29, 2020
0833a03
[Event-listener] Add the logic to handle the corner caseis if the tab…
yozhao101 Jan 30, 2020
56ed262
[Event-listener] Use the syslog.LOG_ERR to write message into syslog
yozhao101 Feb 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Docker-sflow] Modify supervisord config file to pass container name to
event listener.

Signed-off-by: Yong Zhao <yozhao@microsoft.com>
  • Loading branch information
yozhao101 committed Jan 27, 2020
commit 5d007b114a8179e0c8188678559813c39885d95e
2 changes: 1 addition & 1 deletion dockers/docker-sflow/supervisord.conf
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ logfile_backups=2
nodaemon=true

[eventlistener:supervisor-proc-exit-listener]
command=/usr/bin/supervisor-proc-exit-listener
command=/usr/bin/supervisor-proc-exit-listener --container-name sflow
events=PROCESS_STATE_EXITED
autostart=true
autorestart=unexpected