Package: imapproxy
Version: 1.2.4-4
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I tried to upgrade imapproxy today, but failed:

Voorbereiden om imapproxy 1.2.4-4 te vervangen (door 
.../imapproxy_1.2.4-5_i386.deb) ...
Stopping IMAP proxy: invoke-rc.d: initscript imapproxy, action "stop" failed.
dpkg: waarschuwing - verouderd pre-removal script gaf een foutcode 1
dpkg - script uit het nieuwe pakket wordt geprobeerd ...
Stopping IMAP proxy: invoke-rc.d: initscript imapproxy, action "stop" failed.
dpkg: fout bij afhandelen van 
/var/cache/apt/archives/imapproxy_1.2.4-5_i386.deb (--unpack):
 subproces nieuw pre-removal script gaf een foutwaarde 1 terug
Starting IMAP proxy: imapproxy.
Fouten gevonden tijdens behandelen van:
 /var/cache/apt/archives/imapproxy_1.2.4-5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems the error is in the init script when it is called with stop:

 [EMAIL PROTECTED]:~$ ps aux | grep imapproxy[d]
 nobody    7989  0.0  0.2  11956  1524 ?        Ssl  10:11   0:00 
/usr/sbin/imapproxyd -f /etc/imapproxy.conf
 [EMAIL PROTECTED]:~$ sudo /etc/init.d/imapproxy stop ; echo $?
 Stopping IMAP proxy: 1
 [EMAIL PROTECTED]:~$ ps aux | grep imapproxy[d]
 [EMAIL PROTECTED]:~$

The init script stops imapproxy but still return exit code 1, which is cause by 
the call
to grep:

  [EMAIL PROTECTED]:~$ sudo /etc/init.d/imapproxy start ; echo $?
  Starting IMAP proxy: imapproxy.
  0
  [EMAIL PROTECTED]:~$ sudo start-stop-daemon --oknodo --stop --quiet 
--pidfile=/var/run/imapproxy.pid --exec /usr/sbin/imapproxyd -- -f 
/etc/imapproxy.conf | grep warning ; echo $?
  1
  [EMAIL PROTECTED]:~$ sudo /etc/init.d/imapproxy start ; echo $? Starting IMAP 
proxy: imapproxy.
  0
  [EMAIL PROTECTED]:~$ sudo start-stop-daemon --oknodo --stop --quiet 
--pidfile=/var/run/imapproxy.pid --exec /usr/sbin/imapproxyd -- -f 
/etc/imapproxy.conf ; echo $?
  0

Because there are no warning the call to grep returns with exit code 1, which 
causes the initscript to exit with code 1:

 [EMAIL PROTECTED]:~$ echo "" | grep warning ; echo $?
 1

Greetings Arjan 


- -- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-3-moonshine
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages imapproxy depends on:
ii  debconf [debconf-2.0]        1.5.4       Debian configuration management sy
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libncurses5                  5.5-3       Shared libraries for terminal hand
ii  libssl0.9.8                  0.9.8c-1    SSL shared libraries
ii  libwrap0                     7.6.dbs-11  Wietse Venema's TCP wrappers libra

imapproxy recommends no packages.

- -- debconf information:
* imapproxy/imap-server: localhost

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFGjPMUALvsZYuOJARAt0qAJ9554t8WkgiMwO91A8s7+Cqf1KNlACgsNtd
czjt5VlA26ghRBC6qzRCXng=
=rHkp
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to