Complete Installation and Upgrade Information for Software AG Products : Installing Software AG Products : Register Daemons to Automatically Start and Shut Down Products on UNIX Systems : Register Daemons for Products that Provide rc-scripts but not daemon.sh : Manually Register a Daemon on a Red Hat Enterprise Linux 7.x System
Manually Register a Daemon on a Red Hat Enterprise Linux 7.x System
1. Log on to the system as the root user.
2. In the /usr/lib/systemd/system directory, create an init-script using the naming convention sagrc-script_name.service (for example, sagis_default99.service). If you need to create multiple init-scripts because you have multiple product instances on the same machine, use the naming convention sagunique_numberrc-script_name.service.
3. Add the content below to the init-script.
# @full_path_to_rc-script@ ID for daemon.sh compatibility.
[Unit]
Description=description
After=multi-user.target
[Service]
Type=forking
User=user_that_installed_products
ExecStart=full_path_to_rc-script start
ExecStop=full_path_to_rc-script stop
[Install]
WantedBy=multi-user.target
4. Register the daemon by running this command:
systemctl enable init-script_name.service
Copyright © 2007-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback