Installer 10.7 | Complete Installation and Upgrade Information for Software AG Products | Installing Software AG Products On Premises | Registering Daemons to Automatically Start and Shut Down Products on UNIX Systems | Overview
 
Overview
Each Software AG daemon comes with an rc-script which can start and stop the daemon. For many products, you can register daemons at installation time. After installation, you can use the command line tool daemon.sh to register daemons for more Software AG products.
After successful daemon registration the operating system will call the rc-script with 'start' option at startup and with 'stop' option at shutdown. You can also use the daemon.sh tool to list the daemon-related files and to unregister daemons for Software AG products.
The daemon.sh tool supports the following types of UNIX daemons: initd (Solaris), inittab (AIX), launchd (macOS) and systemd (RHEL 7+, SLES 12+). While all these daemon types require different system commands for the (un-)registration of daemons, the daemon.sh works as a wrapper. You can use the daemon.sh tool to (un-)register daemons with a simple command line, which is the same on all supported UNIX operating systems. The following types of files are used:
*System file
The daemon.sh script generates an init-script (initd, inittab), service file (systemd) or plist file (launchd) for each daemon registration and then it calls the individual system commands to complete that registration. The naming convention for the generated system file is sag[number]instance , where sag is a fixed prefix string, and instance is a unique identifier for the daemon instance. If you accidentally specify a non-unique instance during daemon registration, the daemon.sh script automatically adds number to make the init-script name unique. The system file is owned by the root user and the daemon (un-)registration requires root privileges.
The table below shows the locations of system files generated by the daemon.sh script.
System
Location
Solaris
/etc/init.d
SLES 12, RHEL 7
/usr/lib/systemd/system
Mac OS
/Library/LaunchDaemons
AIX
/etc
*Start/stop shell script (rc-script)
Each product daemon has an rc-script that has these features:
*It is installed with the corresponding product.
*It is owned and called by the installation user (that is, the non-root UNIX user that performed the installation).
*It accepts the arguments 'start' and 'stop' to start and stop the corresponding product.
*Some of these files are owned by a third party and might offer options 'install' or 'uninstall', which are not supported.
The rc-script names and locations are listed in Product Daemons and rc-scripts.
Note:
Products not listed in this appendix have no daemons to register or have their own method for registering daemons that is covered in product documentation.