A patch to add a systemd unit is attached.
commit be372baa85c2ebb494cc643cd5969553cadb9f9f
Author: Willow Carlson-Huber <[email protected]>
Date:   Thu Sep 10 15:22:06 2026 -0500
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039312
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/perlbal/+bug/2153896

      * Add systemd unit (LP: #2153896)

diff --git a/debian/perlbal.service b/debian/perlbal.service
new file mode 100644
index 0000000..31816b1
--- /dev/null
+++ b/debian/perlbal.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=a Perl-based reverse proxy load balancer and web server
+
+[Service]
+Type=simple
+Restart=always
+User=www-data
+Group=www-data
+ExecStart=/usr/bin/perlbal
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index 6ba4cb4..903854b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,3 +10,7 @@ override_dh_auto_test:
 	# https://rt.cpan.org/Public/Bug/Display.html?id=98061
 	# https://reproducible.debian.net/rbuild/unstable/amd64/perlbal_1.80-2.rbuild.log
 	dh_auto_test -- TEST_FILES="$(TEST_FILES)"
+
+override_dh_installsystemd:
+	# match init script default (PERLBAL_ENABLE=false): don't enable/start unit on install
+	dh_installsystemd --no-enable --no-start

Reply via email to