[up-imapproxy/el6] Modify init script to pass PID file to killproc, otherwise chrooted daemon is not found (rhbz 116492

cmadams cmadams at fedoraproject.org
Sun Dec 7 21:14:47 UTC 2014


commit 2afd7ee272d1cc599d0ada59fb18a5d2a50fb9e7
Author: Chris Adams <linux at cmadams.net>
Date:   Sun Dec 7 15:14:14 2014 -0600

    Modify init script to pass PID file to killproc, otherwise chrooted
    daemon is not found (rhbz 1164925)

 imapproxy.init    |    2 +-
 up-imapproxy.spec |    6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/imapproxy.init b/imapproxy.init
index 85866e7..b8c527f 100644
--- a/imapproxy.init
+++ b/imapproxy.init
@@ -41,7 +41,7 @@ start() {
 
 stop() {
 	echo -n $"Shutting down up-imapproxy daemon: "
-	killproc /usr/sbin/in.imapproxyd
+	killproc -p /var/run/imapproxy.pid /usr/sbin/in.imapproxyd
 	RETVAL=$?
 	echo
 	[ $RETVAL -eq 0 ] &&  rm -f $lockfile
diff --git a/up-imapproxy.spec b/up-imapproxy.spec
index 087d0b7..939a2e2 100644
--- a/up-imapproxy.spec
+++ b/up-imapproxy.spec
@@ -8,7 +8,7 @@
 Name:           up-imapproxy
 Summary:        University of Pittsburgh IMAP Proxy
 Version:        1.2.8
-Release:        0.2.20130726svn14389%{?dist}
+Release:        0.3.20130726svn14389%{?dist}
 License:        GPLv2+
 Group:          System Environment/Daemons
 URL:            http://www.imapproxy.org
@@ -121,6 +121,10 @@ fi
 %{_sbindir}/*
 
 %changelog
+* Sun Dec 7 2014 Chris Adams <linux at cmadams.net> 1.2.8-0.3.20130726svn14389
+- Modify init script to pass PID file to killproc, otherwise chrooted
+  daemon is not found (rhbz 1164925)
+
 * Tue Oct 1 2013 Manuel Wolfshant <wolfy at fedoraproject.org> 1.2.8-0.2.20130726svn14389
 - Install correct initscript in SysV distros ( thanks Chris Adams )
 


More information about the scm-commits mailing list