Daemon.bootFailed

bool bootFailed() static @safe @nogc nothrow

Did serverino give up starting? (invalid configuration, or a return code set from @onServerInit)

It matters with ServerinoBackground: the daemon runs on its own thread, so a failed boot can't reach your main() as a return code. Without checking this, a while(!Daemon.bootCompleted) loop would wait forever.

while(!Daemon.bootCompleted && !Daemon.bootFailed) Thread.sleep(10.msecs);
if (Daemon.bootFailed) { stderr.writeln(Daemon.bootError); return 1; }