I always ran OF on Windows, but now I have to migrate to Linux. I d/l 4.9 RPM and installed it.
Here I read:
If you are running on a Red Hat or Red Hat like system (CentOS, Fedora, etc.), we recommend using the RPM distributable, as it contains some custom handling of the standard Red Hat like environment. Assuming that you have used the RPM, you can start and stop Openfire using the
/etc/init.d/openfire
script.
This is confusing because init.d
is legacy under systemd
. Further the instruction reads:
If you would like to install Openfire as a service, two scripts are provided in the
bin/extra
directory:
redhat-postinstall.sh
– automatically installs Openfire as a service on Red Hat. It does so by creating a “jive” user and then copying the openfired script to your init.d directory. This script must be run as root. Please see the comments in the script for additional information.openfired
– script to run Openfire as a service. You must manually configure this script. See the comments in the script for additional details.It is not recommended that you use either of these scripts if you installed via RPM. The RPM has already taken care of what these scripts take care of.
This is confusing because it is not clear whether OF will or will not run as a service under a systemd
Linux if I run those scripts.
It is further confusing because there are actually neither bin/extra
under /opt/openfire
nor the above mentioned scripts.
So ultimately, how should I run OF as a service under a systemd
Linux and have it autostart on boot?