/etc/init.d/openfire causes restart of install steps

After restarting my CentOS with a reboot, logging into the admin control web console restarts the already completed install process. Only by manually going to /opt/openfire/bin and running the openfire.sh does the session restart. What is the fix?

fyi im using openfire 3.5.2

could be this was answered somewhere else. i think to resolve this i would need to step thru the shell script (e.g. -x)

CORRECTION: was using openfire 3.5.1. Looked into /opt/openfire/log/error.log saw, ‘java.io.IOException: XML properties file must be writable: openfire.xml’. Found that some files had permissions set ‘root:root’, chmod to daemon:daemon on all files in /opt/openfire resolved this.