Bug 1164925 - service imapproxy stop does not work
Summary: service imapproxy stop does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: up-imapproxy
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-17 21:30 UTC by Peter Meier
Modified: 2014-12-26 19:52 UTC (History)
7 users (show)

Fixed In Version: up-imapproxy-1.2.8-0.3.20130726svn14389.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-26 19:52:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Meier 2014-11-17 21:30:47 UTC
Description of problem:

stopping the imapproxy does not work on EL6

Version-Release number of selected component (if applicable):

1.2.8-0.2.20130726svn14389.el6

How reproducible:

Try to stop imapproxy and you get:

++ __pids_pidof /usr/sbin/in.imapproxyd
++ pidof -c -o 1999 -o 1909 -o %PPID -x /usr/sbin/in.imapproxyd
++ pidof -c -o 1999 -o 1909 -o %PPID -x in.imapproxyd
+ pid=
+ '[' -n '' ']'
+ '[' -n '' -a -n '' ']'
+ failure 'in.imapproxyd shutdown'
+ local rc=1
+ '[' color '!=' verbose -a -z '' ']'
+ echo_failure
+ '[' color = color ']'
+ echo -en '\033[60G'
                                                           + echo -n '['
[+ '[' color = color ']'
+ echo -en '\033[0;31m'
+ echo -n FAILED
FAILED+ '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'


Steps to Reproduce:
1. service imapproxy start
2. service imapproxy stop
3. fail

Actual results:

fails to stop

Expected results:

should be able to stop

Additional info:

can be fixed with:

sed -i 's@killproc @killproc -p /var/run/imapproxy.pid @' /etc/init.d/imapproxy'

Comment 1 Chris Adams 2014-11-17 21:52:46 UTC
Hmm, it works for me on CentOS 6:

++ __pids_pidof /usr/sbin/in.imapproxyd
++ pidof -c -o 25550 -o 25495 -o %PPID -x /usr/sbin/in.imapproxyd
+ pid=25548

What does your running process look like (ps axw | grep imapproxy)?

Comment 2 Peter Meier 2014-11-17 22:09:18 UTC
I'm also on CentOS 6:

# service imapproxy stop
Shutting down up-imapproxy daemon:                         [FAILED]
# ps axw | grep imapproxy
 3853 pts/0    S+     0:00 grep imapproxy
 9755 ?        Sl     7:50 /usr/sbin/in.imapproxyd
# rpm -Vs up-imapproxy
S.5....T.  c /etc/imapproxy.conf
# rpm -qi up-imapproxy
Name        : up-imapproxy                 Relocations: (not relocatable)
Version     : 1.2.8                             Vendor: Fedora Project
Release     : 0.2.20130726svn14389.el6      Build Date: Thu 03 Oct 2013 12:33:12 AM CEST
Install Date: Sat 01 Feb 2014 03:26:17 AM CET      Build Host: buildvm-20.phx2.fedoraproject.org
Group       : System Environment/Daemons    Source RPM: up-imapproxy-1.2.8-0.2.20130726svn14389.el6.src.rpm
Size        : 158846                           License: GPLv2+
Signature   : RSA/8, Thu 03 Oct 2013 05:24:22 PM CEST, Key ID 3b49df2a0608b895
Packager    : Fedora Project
URL         : http://www.imapproxy.org
Summary     : University of Pittsburgh IMAP Proxy
Description :
imapproxy was written to compensate for webmail clients that are
unable to maintain persistent connections to an IMAP server. Most
webmail clients need to log in to an IMAP server for nearly every
single transaction. This behaviour can cause tragic performance
problems on the IMAP server. imapproxy tries to deal with this problem
by leaving server connections open for a short time after a webmail
client logs out. When the webmail client connects again, imapproxy
will determine if there's a cached connection available and reuse it
if possible.

# pidof -c -x /usr/sbin/in.imapproxyd
#

Maybe it is because I run it chrooted:

# pidof -x in.imapproxyd
9755
# ls -l /proc/9755/cwd
lrwxrwxrwx. 1 root root 0 Nov 15 04:30 /proc/9755/cwd -> /var/empty
# grep empty /etc/imapproxy.conf 
chroot_directory /var/empty

So the -c filter of pidof kicks in.

Comment 3 Fedora Update System 2014-12-07 21:20:36 UTC
up-imapproxy-1.2.8-0.3.20130726svn14389.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/up-imapproxy-1.2.8-0.3.20130726svn14389.el6

Comment 4 Fedora Update System 2014-12-11 06:26:27 UTC
Package up-imapproxy-1.2.8-0.3.20130726svn14389.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing up-imapproxy-1.2.8-0.3.20130726svn14389.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-4521/up-imapproxy-1.2.8-0.3.20130726svn14389.el6
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-12-26 19:52:45 UTC
up-imapproxy-1.2.8-0.3.20130726svn14389.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.