Startup scrips for RHEL/Centos/Fedora?
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,
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
Quoted text · Gioele Barabucci · 14 lines
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 at svario.it> >
Quoted text · Dirk Kirsten · 5 lines
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.
Quoted text · Dirk Kirsten · 1 line
> 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,
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.