fix: console log to container log
This commit is contained in:
		| @ -59,7 +59,7 @@ function stopServer() { | |||||||
| 	IS_RUNNING="false" | 	IS_RUNNING="false" | ||||||
| 	echo "done!" | 	echo "done!" | ||||||
| } | } | ||||||
| ./"$SERVER_EXECUTABLE" start & | ./"$SERVER_EXECUTABLE" start | ||||||
| trap stopServer SIGTERM | trap stopServer SIGTERM | ||||||
|  |  | ||||||
| #start cron | #start cron | ||||||
| @ -71,6 +71,7 @@ bash "/home/initCron.sh" | |||||||
|  |  | ||||||
| # --- Wait for Shutdown --- | # --- Wait for Shutdown --- | ||||||
| echo "Server is running, waiting for SIGTERM" | echo "Server is running, waiting for SIGTERM" | ||||||
|  | tail -f /home/steam/log/console/gmodserver-console.log & | ||||||
| while [ "$IS_RUNNING" = "true" ] | while [ "$IS_RUNNING" = "true" ] | ||||||
| do | do | ||||||
| 	sleep 1s | 	sleep 1s | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user