[201811] Dell S6100:Add serial-getty service to monit (#8410)
Why I did it serial-getty service exited in Dell S6100 device randomly. How I did it Added serial-getty to monit services. How to verify it Stop serial-getty in ssh session and check whether the service restarts or not.
This commit is contained in:
parent
77892832b7
commit
54e32c1f30
@ -11,6 +11,7 @@ s6100/scripts/fast-reboot_plugin usr/share/sonic/device/x86_64-dell_s6100_c2538-
|
|||||||
s6100/scripts/warm-reboot_plugin usr/share/sonic/device/x86_64-dell_s6100_c2538-r0
|
s6100/scripts/warm-reboot_plugin usr/share/sonic/device/x86_64-dell_s6100_c2538-r0
|
||||||
s6100/scripts/soft-reboot_plugin usr/share/sonic/device/x86_64-dell_s6100_c2538-r0
|
s6100/scripts/soft-reboot_plugin usr/share/sonic/device/x86_64-dell_s6100_c2538-r0
|
||||||
common/dell_lpc_mon.sh usr/local/bin
|
common/dell_lpc_mon.sh usr/local/bin
|
||||||
|
s6100/scripts/s6100_serial_getty_monitor etc/monit/conf.d
|
||||||
s6100/scripts/s6100_ssd_mon.sh usr/local/bin
|
s6100/scripts/s6100_ssd_mon.sh usr/local/bin
|
||||||
s6100/scripts/s6100_ssd_upgrade_status.sh usr/local/bin
|
s6100/scripts/s6100_ssd_upgrade_status.sh usr/local/bin
|
||||||
s6100/scripts/platform_sensors.py usr/local/bin
|
s6100/scripts/platform_sensors.py usr/local/bin
|
||||||
|
@ -58,6 +58,7 @@ if [[ "$1" == "init" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
install_python_api_package
|
install_python_api_package
|
||||||
|
monit reload
|
||||||
|
|
||||||
elif [[ "$1" == "deinit" ]]; then
|
elif [[ "$1" == "deinit" ]]; then
|
||||||
/usr/local/bin/s6100_i2c_enumeration.sh deinit
|
/usr/local/bin/s6100_i2c_enumeration.sh deinit
|
||||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user