Yes, indeed all init scripts runs as root AFAIK, is the script responsibility to run the application server as another user, and this script is no exception.