Startup scrips for RHEL/Centos/Fedora?
Wednesday, 4 February 2015 · 3 messages · last reply 5 Feb 2015
GB
Gioele Barabucci4 Feb 2015 11:37 #
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>
DK
Dirk Kirsten5 Feb 2015 13:05 #
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> >
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
GB
Gioele Barabucci5 Feb 2015 13:46 #
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,
--
Gioele Barabucci <gioele at svario.it>
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery