Package: runit
Version: 2.1.2-3.1
Tags: patch

The systemd unit file included makes systemd send a SIGTERM to
runsvdir-start. This causes runit to exit immediately, without
terminating the tasks it manages. On system shutdown,  this means the
processes might not get terminated gracefully.

Instead, systemd should send SIGHUP to runsvdir-start which causes it
to send TERM to the processes it manages. This can be achieved by
setting KillSignal=SIGHUP in the unit file.
diff -u runit-2.1.2/debian/changelog runit-2.1.2/debian/changelog
--- runit-2.1.2/debian/changelog
+++ runit-2.1.2/debian/changelog
@@ -1,3 +1,11 @@
+runit (2.1.2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * set KillSignal=SIGHUP in systemd runit to assure clean shutdown of runit
+    tasks.
+
+ -- Johannes 'fish' Ziemke <deb...@freigeist.org>  Fri, 08 Jan 2016 11:53:51 +0100
+
 runit (2.1.2-3) unstable; urgency=medium
 
   * workaround #766187 by copying from sysvinit-2.88dsf:
diff -u runit-2.1.2/debian/systemd/runit.service runit-2.1.2/debian/systemd/runit.service
--- runit-2.1.2/debian/systemd/runit.service
+++ runit-2.1.2/debian/systemd/runit.service
@@ -3,6 +3,7 @@
 
 [Service]
 ExecStart=/usr/sbin/runsvdir-start
+KillSignal=SIGHUP
 Restart=always
 
 [Install]

Reply via email to