fix: systemd service install target

This commit is contained in:
Thomas Finstad
2025-02-19 08:47:03 +01:00
parent 94df2fd1a6
commit 200b7cd170
3 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
fixed:
- Fix systemd service file missing install target and network requirements (by @thomasfinstad). [#135]

View File

@@ -8,7 +8,8 @@ wget https://cdn.gyptazy.ch/files/amd64/debian/proxlb/proxlb_0.9.9_amd64.deb
dpkg -i proxlb_0.9.9_amd64.deb
# Adjust your config
vi /etc/proxlb/proxlb.conf
systemctl restart proxlb
# Enable and start the service
systemctl enable --now proxlb
systemctl status proxlb
```

View File

@@ -1,6 +1,11 @@
[Unit]
Description=ProxLB - Rebalance VM workloads
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/bin/proxlb -c /etc/proxlb/proxlb.conf
User=plb
[Install]
WantedBy=multi-user.target