Eloquence startup/shutdown on Linux
@(#) B.08.30 ($Revision: 28.4 $)
--------------------------------------------------------------------

On the Linux platform, Eloquence preferably uses systemd to manage 
services where available. The systemd services provide similar 
functionality as the Eloquence SystemV start/stop scripts.


systemd
=======

The systemd unit files are installed in the /lib/systemd/system or
/usr/lib/systemd/system directory, depending on the distribution
conventions.

The systemd configuration is used to define the Eloquence services. 

The following systemd unit files are available:

eloquence83.target

   The Eloquence target encloses any enabled or running Eloquence 
   B.08.30 services. The target may be used to start or shut down 
   all Eloquence B.08.30 services.

eloqdb83.service

   The default Eloquence database instance.

eloqdb83@.service

   Additional Eloquence database instances. The instance name may 
   be specified after the @ sign and implies the database server 
   configuration file name. For example, a eloqdb83@test.service 
   would use the eloqdb-test.cfg configuration file.

eloqsd83.service

   The Eloquence eloqsd service

dbrepl83.service

   The default Eloquence database replication instance

dbrepl83@.service

   Additional Eloquence database replication instances. The 
   instance name may be specified after the @ sign and implies the
   dbrepl configuration file. For example, a dbrepl83@test.service 
   would use the configuration file repl-test.cfg.

The unit file names are versioned to allow coexistence with other 
Eloquence releases. Once enabled and started a service name without
a version number may be used as an alias.

The Eloquence services are not enabled by default. Please use 
"systemctl enable ..." to enable the necessary services for autostart.

   systemctl enable eloqsd83
   systemctl enable eloqdb83

This enables the default eloqsd and eloqdb services.

To start or stop Eloquence services, the systemctl command is used:

   systemctl start eloquence83.target
   systemctl stop eloqsd83
   systemctl status eloqdb83

As system wide systemd services require root access sudo may be used
to allow users to start/stop services without root capabilities.

If required for backwards compatibility the Eloquence SYSV init 
support may also used on systems which use systemd as an option. 
However, a manual installation is required.


SystemV init
============

The SystemV init scripts can be used on Linux with a SYSV style init
scheme. Since system startup and shutdown depends on the Linux 
distribution you may have to adapt these scripts to your specific 
requirements.

Currently, the following variations are supported:
- SUSE Linux
- RedHat Linux
- Debian (and derivates)
- LSB compatible

All startup/shutdown scripts variations use a common set of 
Eloquence specific functions, sourced from 
/opt/eloquence/8.3/etc/rcfunctions and add specific distribution 
specifc behavior, such as the location of the configuration file
or formatting of any output.
The configuration file has a common format for all platforms.

Any corrections, enhancements or suggestions are appreciated.
Please mail any feedback to support@marxmeier.com


SUSE Linux
==========

The startup configuration file is placed in 
/etc/sysconfig/eloquence83. Eloquence uses /sbin/insserv to maintain
run level links.


Red Hat Linux
=============

The configuration file /etc/sysconfig/eloquence83 is used for startup
configuration. Eloquence uses chkconfig to maintain run level links.


Debian (and derivates)
======================

The configuration file /etc/default/eloquence83 is used for startup
configuration. Eloquence uses update-rc.d to maintain run level links.


LSB compatible
==============

Unless there is specific support for a distribution, LSB compliance
is assumed if the file /lib/lsb/init-functions is present and 
/usr/lib/lsb/install_initd is executable (as required by the LSB).

Please refer to:
http://www.linuxbase.org/spec/gLSB/gLSB/sysinit.html

The Eloquence startup script is installed in /etc/init.d/eloq83
and the run level links are maintained with the lsb
/usr/lib/lsb/install_initd utility.

/usr/lib/lsb/install_initd /opt/eloquence/startup/lsb/eloquence

By default, the Eloquence startup script is setup to start in
run levels 2 3 5 and stop in run levels 0 1 6.

The Eloquence startup configuration file is installed as
/etc/sysconfig/eloquence83


Other distributions
===================

You are basically on your own.
Please mail any feedback to support@marxmeier.com

A LSB compatible startup/shutdown script is included in the lsb 
subdirectory. It assumes the eloquence config file is installed in 
/etc/sysconfig/eloquence83.

Copy the configuration file eloquence.rc to /etc/sysconfig/eloquence83 
and the startup script lsb/eloquence to the appropriate location. 
Then edit the startup script as needed and create any startup links.
