How to Covert SDP and Restmon connector processes in to services.
DX Operational Intelligence 25.1
CA DOI RESTMON CONNECTORS / SCHEMAS / AGENTS
Follow the below Steps for Linux (using systemd):-
If your CA DX DOI runs on Linux, you typically use systemd to manage services.
1. Create a Service Unit File:
1.1 Create a new service file (e.g., sudo nano /etc/systemd/system/dxdoi-restmon.service).
2. Add Service Configuration:
2.1 Add the following content, adjusting paths and commands as necessary:
ini
[Unit]
Description=CA DX DOI Restmon Connector
After=network.target
[Service]
User=youruser
WorkingDirectory=/path/to/restmon/connector
ExecStart=/path/to/restmon/connector/start_restmon.sh
Restart=always
[Install]
WantedBy=multi-user.target
3. Reload systemd and Enable the Service:
3.1 Run sudo systemctl daemon-reload.
3.2 Enable the service to start on boot: sudo systemctl enable dxdoi-restmon.service.
4. Start the Service:
4.1 Start the service: sudo systemctl start dxdoi-restmon.service.
4.2 Check the status: systemctl status dxdoi-restmon.service.
By following these steps, your connectors will run as persistent services and automatically start when the server reboots.