launchd
with default resolving of init systam by cat /proc/1/comm. In case resolving ends with non-supported init system warning is shown and watchdog isn't started. In a system (container) without any option from list above (init, launchd aren't avaliable, systemd requires additional setup) we can't easily track stunnel leftovers.
Proposal is to add support for init system based on raw shell, for such case
existence of PID file (/var/run/efs/amazon-efs-mount-watchdog.pid) is checked and in case it exists existence of process with PID
Now mount.efs/start_watchdog support init systems
cat /proc/1/comm
. In case resolving ends with non-supported init system warning is shown and watchdog isn't started. In a system (container) without any option from list above (init, launchd aren't avaliable, systemd requires additional setup) we can't easily track stunnel leftovers.Proposal is to add support for init system based on raw shell, for such case