Commit dea09a23 authored by Adam Wujek's avatar Adam Wujek 💬

rootfs: simplify checking if bropbear is alive by monit

Make monit to not try to connect to dropbear. If it tries, then messages like
following goes to syslog at every monit's check (10 seconds):

Jan  1 02:47:18 (none) dropbear[1477]: Child connection from 127.0.0.1:57891
Jan  1 02:47:18 (none) dropbear[1477]: Exit before auth: Exited normally
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 0edbd3e1
check process dropbear with pidfile /var/run/dropbear.pid
start program = "/etc/init.d/dropbear start"
stop program = "/etc/init.d/dropbear stop"
if failed host localhost port 22 type tcp then restart
if 5 restarts within 10 cycles then exec "/etc/init.d/reboot.sh dropbear"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment