Dell S6100: Monitor serial-getty service (#8304)

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:
Aravind Mani 2021-08-04 14:32:02 -07:00 committed by GitHub
parent 2bb9f0b314
commit 81ab2f1bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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"