DSEngine does not start automatically on RHEL7
Technote (troubleshooting)
Problem(Abstract)
DataStage clients cannot connect to the server after a reboot of the engine tier.
Symptom
DSEngine does not start automatically on RHEL7 even though ds.rc links have been set up under /etc/init.d and /etc/rc[2-5].d. |
Cause
In Red Hat Enterprise Linux 7, systemd replaces upstart as the default init system. |
Environment
RHEL 7
Resolving the problem
The following steps work around the issue. Root access is necessary.
For non-itag installs:---
Create a file "/usr/lib/systemd/system/ds.rc.service" with the following content.
[Unit]
Description=DataStage Engine
Requires=basic.target
[Service]
Type=forking
RemainAfterExit=yes
ExecStart=/etc/init.d/ds.rc start
ExecStop=/etc/init.d/ds.rc stop
[Install]
WantedBy=multi-user.target
Then execute the following commands to enable autostart of DataStage Server Engine.
# systemctl enable ds.rc.service
# systemctl start ds.rc.service
To disable autostart of DataStage Server Engine.
# systemctl disable ds.rc.service
For ITAG Install:--
Create a file "/usr/lib/systemd/system/{itag}ds.rc.service" with the following content.
[Unit]
Description=DataStage Engine
Requires=basic.target
[Service]
Type=forking
RemainAfterExit=yes
ExecStart=/etc/init.d/{itag}ds.rc start
ExecStop=/etc/init.d/{itag}ds.rc stop
[Install]
WantedBy=multi-user.target
Then execute the following commands to enable autostart of DataStage Server Engine.
# systemctl enable {itag}ds.rc.service
# systemctl start {itag}ds.rc.service
To disable autostart of DataStage Server Engine.
# systemctl disable {itag}ds.rc.service