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.
  1. 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
    
  2. Reload the system daemon to pick up the new file.
    systemctl daemon-reload
  3. Enable the service to start after a restart.
    systemctl enable remoteconnector.service
  4. Start the service.
    systemctl start remoteconnector.service