Document toolboxDocument toolbox

Using Systemd to manage the PowerConnect Cloud Agent

The PowerConnect Cloud agent can be managed by Systemd.

  1. Create the powerconnect systemd service file:

sudo vi /etc/systemd/system/powerconnect.service

2. Populate the contents as follows:

[Unit] Description=PowerConnect Cloud agent [Service] Environment=POWERCONNECT_SECRET=<insert secret here> SuccessExitStatus=143 User=powerconnect Group=powerconnect Type=forking Restart=on-failure RestartSec=30 ExecStart=/bin/bash /opt/powerconnect/bin/powerconnect.sh start ExecStop=/bin/bash /opt/powerconnect/bin/powerconnect.sh stop [Install] WantedBy=multi-user.target

3. Set the POWERCONNECT_SECRET variable placeholder with a value as shown above

4. Reload the Systemd service:

sudo systemctl daemon-reload

5. Start the PowerConnect Cloud agent using Systemd:

sudo systemctl start powerconnect.service

6. Check the status:

systemctl status powerconnect

7. To have Systemd start the PowerConnect Cloud agent when the host starts up:

sudo systemctl enable powerconnect

Â