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'
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)?
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.
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
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).
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.