I would say that the user that is running the server does not have write permission on the conf/openfire.xml file. The server needs to update that file to indicate that the setup has been done and store some information. Moreover, I would recommend giving read-write permission to the user running Openfire to all the files and folders where Openfire was installed.
Changing setup to false in conf/openfire.xml and restarting the server is used as a way to rerun the setup wizard that appears when you first install the server. I don’t think that is your problem here.
I now have completed the installation, and have not changed setup to false in conf / openfire.xml ,But as long as I am before the shutdown or restart with "serivce
openfire stop" stop services, we do not expect any problem,
If not “service openfire stop” Problems will emerge,