Hello,
the RHEL/Centos/Fedora packages do not contain the /etc scripts needed to lauch BaseX as a normal chkconfig service.
Has anybody written such scripts? Could they be distributed inside the packages?
Regards,
-- Gioele Barabucci gioele@svario.it
Hello Gioele,
chkconfig is an outdated system and most Linux distributions (including RHEL/CentOS and Fedora) use systemd nowadays. You can add the file /etc/systemd/system/basex.service
[Unit] Description=BaseX database server
[Service] PIDFile=/var/run/basex.pid ExecStart=/your/path/to/basexserver
[Install] WantedBy=multi-user.target
This allows you to start/stop the BaseX server using
systemctl start/stop basex
Cheers, Dirk
On 02/04/2015 11:37 AM, Gioele Barabucci wrote:
Hello,
the RHEL/Centos/Fedora packages do not contain the /etc scripts needed to lauch BaseX as a normal chkconfig service.
Has anybody written such scripts? Could they be distributed inside the packages?
Regards,
-- Gioele Barabucci gioele@svario.it
Am 05.02.2015 um 13:05 schrieb Dirk Kirsten:
Hello Gioele,
chkconfig is an outdated system and most Linux distributions (including RHEL/CentOS and Fedora) use systemd nowadays.
Sadly many institutions are not so up to date. Those using RHEL 5 (supported until 2020) are stuck with chkconfig and those using RHEL 6 with upstart.
It would be nice if these scripts were included in the official (?) packages, so to streamline the installation process and reduce the workload for the admins.
You can add the file /etc/systemd/system/basex.service
Could this service file be included in the packages?
I have also found a chkconfig-based startup script for BaseX at https://github.com/openhie/openinfoman-zim/blob/master/util-scripts/basex. This could be packaged as well.
Regards,
-- Gioele Barabucci gioele@svario.it
basex-talk@mailman.uni-konstanz.de