Remote connector does not start after restart in Watson Query
Remote connectors do not automatically restart after a restart.
Symptoms
After you install a remote connector on a CentOS/Red Hat® Enterprise Linux® machine, the connection did not start after a restart of the remote machine that runs the connector.
Resolving the problem
To solve this issue, on the CentOS/Red Hat Enterprise Linux machine, use systemd and systemctl to create a service out of the datavirtualization_start.sh script.- Create a .service file in the /etc/systemd/system
directory. For example, create a remoteconnector.service file with the
following content.
Description=Start Cloud Pak for Data Remote Connector at Boot After=network.target [Service] Type=simple user=ibmuser ExecStart=/home/ibmuser/dvendpoint/datavirtualization_start.sh TimeoutStartSec=0 [Install] WantedBy=default.target
- Reload the system daemon to pick up the new
file.
systemctl daemon-reload
- Enable the service to start after a
restart.
systemctl enable remoteconnector.service
- Start the
service.
systemctl start remoteconnector.service