Attached is the patch i used against runit 2.1.1-6 for NMUing #603827
(uploaded just now on 2010-12-26).

Thanks, Jonathan Nieder for the diagnosis and the fix.

Regards,

        --dkg
diff --git a/debian/changelog b/debian/changelog
index b0a6f1f..06f185c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+runit (2.1.1-6.1) local; urgency=low
+
+  * debian/runit.config: skip preconfiguration if ps is not
+    installed.
+  * debian/control: Depends: procps (closes: #603827).
+
+ -- Jonathan Nieder <jrnie...@gmail.com>  Wed, 15 Dec 2010 21:43:41 -0600
+
 runit (2.1.1-6) unstable; urgency=high
 
   * debian/rules: don't set -D_FILE_OFFSET_BITS=64 on sparc (fixes
diff --git a/debian/control b/debian/control
index 524f333..2098d2d 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Standards-Version: 3.8.0.1
 
 Package: runit
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: procps, ${shlibs:Depends}
 Recommends: fgetty
 Suggests: runit-run, socklog-run
 Description: system-wide service supervision
diff --git a/debian/runit.config b/debian/runit.config
index 86ae985..f23d62d 100644
--- a/debian/runit.config
+++ b/debian/runit.config
@@ -11,9 +11,11 @@ if test "$1" = configure && test -n "$2" &&
   exit 0
 fi
 
-if `ps -p 1 >/dev/null`; then
-  db_input low runit/signalinit || :
-else
-  db_input high runit/signalinit || :
+if which ps >/dev/null 2>&1; then
+  if ps -p 1 >/dev/null; then
+    db_input low runit/signalinit || :
+  else
+    db_input high runit/signalinit || :
+  fi
+  db_go || :
 fi
-db_go || :

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to