Thank you for the suggestion. I will do that.
*edit* MAX_WAIT_TIME_SECONDS is not used by the build.cmd script (it's used when someone calls "cocoapods.cmd wait"). So it can't have an effect. Curiously you say that increasing AUTOSHUTDOWN_SECONDS solved your problem, but the automatic shutdown is supposed to happen only when no connection is currently open between the daemon's VM and an external program, i.e. when it does nothing. This feedback instructs me that it's not quite the case and there's something I should fix here.
*edit 2* Okay I found the real problem.
Please open cocoapods.cmd with your text editor and look for the line that says:
% cocoapods.cmd
!SEND_COMMAND_AS_ROOT! "IDLE_COUNT=0; while true; do sleep 10; ps ax|grep 'sshd: '|grep -v '[listener]'|grep -v grep > /dev/null && IDLE_COUNT=0 || IDLE_COUNT=$((IDLE_COUNT+1)); test $((IDLE_COUNT*10)) -gt %AUTOSHUTDOWN_SECONDS% && poweroff; done >&- 2>&- <&- &"
%
Change it to:
% cocoapods.cmd
!SEND_COMMAND_AS_ROOT! "IDLE_COUNT=0; while true; do sleep 10; ps ax|grep 'sshd: '|grep -v '\[listener\]'|grep -v grep > /dev/null && IDLE_COUNT=0 || IDLE_COUNT=$((IDLE_COUNT+1)); test $((IDLE_COUNT*10)) -gt %AUTOSHUTDOWN_SECONDS% && poweroff; done >&- 2>&- <&- &"
%
Notice the backslashes between the brackets enclosing the word "listener". Those missing were the reason why the daemon would auto-shutdown after 5 minutes, no matter whether a Pod operation was active or not. The technical reason is that the POSIX pattern matching utility "grep" considers anything between brackets as a character range (regex rule) and if I want to match a _regular_ bracket (which is what I wanted here) then I must precede it with a backslash.
This fix will be in the next version :)