Startup script with infinite loop

Is it possible to have an infinite loop in a startup script. We have a RabbitMQ (not MQTT yet) server which I can connect to with Python (and hopefully Jython, not tried it). The script imply an infinite loop which got me wondering if it would work as a startup script or it will break something.

Do all startup script run in parallel or sequential?
Do the gateway wait the script to end in some way?
Will the thread running the script will be restarted on changes to the script/project’s scripts?

Infinite loops should always be placed in their own thread with system.util.invokeAsynchronous(), and include some form of self checking to let themselves be replaced when scripting restarts.

Looks promising. Not sure of the self checking, but I will start and see