From 200b7cd170da56b8187fba1ceab3336322c02ef2 Mon Sep 17 00:00:00 2001 From: Thomas Finstad Date: Wed, 19 Feb 2025 08:47:03 +0100 Subject: [PATCH] fix: systemd service install target --- .changelogs/1.0.7/135_fix_systemd_service_install_target.yml | 2 ++ docs/01_Installation.md | 3 ++- packaging/proxlb.service | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changelogs/1.0.7/135_fix_systemd_service_install_target.yml diff --git a/.changelogs/1.0.7/135_fix_systemd_service_install_target.yml b/.changelogs/1.0.7/135_fix_systemd_service_install_target.yml new file mode 100644 index 0000000..5a4fcfc --- /dev/null +++ b/.changelogs/1.0.7/135_fix_systemd_service_install_target.yml @@ -0,0 +1,2 @@ +fixed: + - Fix systemd service file missing install target and network requirements (by @thomasfinstad). [#135] diff --git a/docs/01_Installation.md b/docs/01_Installation.md index 6971404..19c6ddf 100644 --- a/docs/01_Installation.md +++ b/docs/01_Installation.md @@ -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 ``` diff --git a/packaging/proxlb.service b/packaging/proxlb.service index ed326bd..4e98581 100644 --- a/packaging/proxlb.service +++ b/packaging/proxlb.service @@ -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