Update watchdog.sh to wait STARTUPMIN for port listen#80
Update watchdog.sh to wait STARTUPMIN for port listen#804rt3m1sF0wl wants to merge 1 commit intodoctorray117:mainfrom
Conversation
Adjust MC version checker to wait for $STARTUPMIN minutes, as if server does not listen until started, it will always be terminated before listening on its respective port, making the STARTUPMIN env variable nonfunctional.
|
Looked through open issues and didn't see anything applicable. Currently experiencing bug that I believe is related to this while attempting to run Stoneblock 4 with Neoforge (1.21.1). I guess rather than opening the port for listening on startup, it leaves it closed until fully prepared to handle incoming connections. While starting up, rather than the usual warning on attempted connection:
It simply throws an error:
It does this until opening. Occasionally it beats the built-in 10 minute timer and allows connection, working appropriately afterwards, but usually is automatically shutdown. I've censored some information in the logs, but this configuration is otherwise functional, also have a task definition configured for use with GTNH on Forge (1.7.10) which detects version and respects STARTUPMIN changes flawlessly. I assume this is due to differences in modloader or MC version which changes startup behavior. See current JSON configuration for the watchdog: See also startup logs from fargate watchdog for this service: |
Adjust MC version checker to wait for $STARTUPMIN minutes, as if server does not listen until started, it will always be terminated before listening on its respective port, making the STARTUPMIN env variable nonfunctional.