tags 595334 + patch
quit

Jonathan Nieder wrote:

> I think Sasha described the same problem in <http://bugs.debian.org/584137>.

-- 8< --
From: alexander barakin <alex.bara...@gmail.com>
Date: Thu, 3 Jun 2010 15:28:51 +0400
Subject: Make sure runsvdir starts on install

Unless the user has requested otherwise, a signal is sent to
/sbin/init, so the daemon can start.

Without this change, the script is not robust: it must be
possible to interrupt and re-run postinst without breaking an
installation.  Moreover, for some unknown reason, without this
change the daemon is never started.

[jn: with more detailed description]
Tested-by: Jonathan Nieder <jrnie...@gmail.com>
---
 debian/runit.postinst |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/runit.postinst b/debian/runit.postinst
index 7e501cc..377c1ac 100644
--- a/debian/runit.postinst
+++ b/debian/runit.postinst
@@ -42,11 +42,12 @@ if ! grep '^SV:' /etc/inittab >/dev/null; then
        #-- runit end
        EOT
   mv -f /etc/inittab'{new}' /etc/inittab
-  if test -r /usr/share/debconf/confmodule; then
-    . /usr/share/debconf/confmodule
-    db_get runit/signalinit
-    test "$RET" = false || kill -s HUP 1
-  else 
-    kill -s HUP 1  
-  fi
+fi
+
+if test -r /usr/share/debconf/confmodule; then
+  . /usr/share/debconf/confmodule
+  db_get runit/signalinit
+  test "$RET" = false || kill -s HUP 1
+else
+  kill -s HUP 1
 fi
-- 
1.7.2.2




-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to