...
Code Block |
---|
[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
45. Start the PowerConnect Cloud agent using Systemd:
sudo systemctl start powerconnect.service
56. Check the status:
systemctl status powerconnect
67. To have Systemd start the PowerConnect Cloud agent when the host starts up:
...