Install services for non-root/non-sudo Linux installations

1 minute readReference

If your environment doesn’t support System V service management, and supports only systemd, use the following methods to manually install services:

  1. Copy the service file from the installation directory to systemd services:

    sudo cp -v <INSTALL_DIR>/startup/<SERVICE_NAME>.service /etc/systemd/system(1) (2)
    1 Replace <INSTALL_DIR> with the installation directory path.
    2 Replace <SERVICE_NAME> with the name of the service.
  2. Reload the systemd daemon:

    sudo systemctl daemon-reload
  3. Enable the service:

    sudo systemctl enable <SERVICE_NAME>(1)
    1 Replace <SERVICE_NAME> with the name of the service.
  4. Start the service:

    sudo systemctl start <SERVICE_NAME>(1)
    1 Replace <SERVICE_NAME> with the name of the service.

Example of non-root service installation:

sudo cp -v installation_dir/startup/commanderAgent.service /etc/systemd/system(1) (2) sudo systemctl daemon-reload sudo systemctl enable commanderAgent(2) sudo systemctl start commanderAgent(2)
1 In this example, installation_dir is the installation directory path.
2 In this example, commanderAgent is the name of the service.