From 4bc95690539d619019f991628e8fe11c77e04734 Mon Sep 17 00:00:00 2001 From: Aravind Mani Date: Mon, 2 Aug 2021 10:51:27 +0530 Subject: [PATCH 1/2] Dell S6100: Monitor serial-getty service --- .../debian/platform-modules-s6100.install | 1 + .../s6100/scripts/s6100_serial_getty_monitor | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_serial_getty_monitor diff --git a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install index ae73bf82f58c..0823b7c86dc3 100644 --- a/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install +++ b/platform/broadcom/sonic-platform-modules-dell/debian/platform-modules-s6100.install @@ -25,5 +25,6 @@ s6100/systemd/platform-modules-s6100.service etc/systemd/system s6100/systemd/s6100-lpc-monitor.service etc/systemd/system s6100/systemd/s6100-reboot-cause.service etc/systemd/system s6100/systemd/s6100-i2c-enumerate.service etc/systemd/system +s6100/scripts/s6100_serial_getty_monitor etc/monit/conf.d common/fw-updater usr/local/bin common/onie_mode_set usr/local/bin diff --git a/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_serial_getty_monitor b/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_serial_getty_monitor new file mode 100644 index 000000000000..1b5d0c90db37 --- /dev/null +++ b/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_serial_getty_monitor @@ -0,0 +1,4 @@ +#Dell S6100 serial getty monitor +check process serial-getty matching "ttyS" +start program = "/bin/systemctl start serial-getty@ttyS1.service" +stop program = "/bin/systemctl stop serial-getty@ttyS1.service" From 6e64b7a6a38aae59f421052a2df0067b7d70379a Mon Sep 17 00:00:00 2001 From: Aravind Mani Date: Tue, 3 Aug 2021 18:22:39 +0530 Subject: [PATCH 2/2] update platform init script --- .../sonic-platform-modules-dell/s6100/scripts/s6100_platform.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_platform.sh b/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_platform.sh index 62a8c1a2812f..5c7c2308c1f0 100755 --- a/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_platform.sh +++ b/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/s6100_platform.sh @@ -52,6 +52,7 @@ if [[ "$1" == "init" ]]; then fi install_python_api_package + monit reload elif [[ "$1" == "deinit" ]]; then /usr/local/bin/s6100_i2c_enumeration.sh deinit