Package: imapproxy
Version: 1.2.4-4
Severity: wishlist
Tags: patch

It would be nice if imapproxy had an /etc/default/imapproxy with
START=0
which would enable me NOT to start it at boottime, but from
runit/daemontools.

I added the appropriate (?) patch to this bug report

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.14
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages imapproxy depends on:
ii  debconf [debconf-2.0]         1.5.2      Debian configuration management sy
ii  libc6                         2.3.6-13   GNU C Library: Shared libraries
ii  libncurses5                   5.5-2      Shared libraries for terminal hand
ii  libssl0.9.8                   0.9.8b-2   SSL shared libraries
ii  libwrap0                      7.6.dbs-9  Wietse Venema's TCP wrappers libra

imapproxy recommends no packages.

-- debconf information excluded
--- imapproxy~  2006-05-12 04:02:53.000000000 +0200
+++ imapproxy   2006-06-27 16:00:27.000000000 +0200
@@ -20,8 +20,19 @@
 
 test -f $DAEMON || exit 0
 
+#edit /etc/default/imapproxy to change this.
+START=1
+
 set -e
 
+. /lib/lsb/init-functions
+
+test -f /etc/default/imapproxy && . /etc/default/imapproxy
+if [ "$START" == "0" -a "$1" != "stop" ]; then 
+        log_warning_msg "Not starting imapproxy - edit /etc/default/imapproxy 
and change START to be 1.";
+        exit 0;
+fi
+
 case "$1" in
   start)
        echo -n "Starting $DESC: "

Reply via email to