Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62791 - exim: use pidfile to kill process
Summary: exim: use pidfile to kill process
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Lowest minor (vote)
Assignee: Colin Morey (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-04 01:28 UTC by stan
Modified: 2005-10-08 02:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stan 2004-09-04 01:28:38 UTC
In exim.rc6 the process is stopped with --exec /usr/sbin/exim, so if you just upgraded exim the executable in memory and on disk will not match and exim will not be stopped.
Can the pidfile be used for stopping exim (--pidfile /var/run/exim.pid) as this would (afaik) be the preferred method to find the exim process and also allow it to work across upgrades.
Comment 1 stan 2004-09-04 02:29:27 UTC
also relates to (resolved) bug 1147
Comment 2 stan 2004-09-04 03:15:24 UTC
from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=256790:
"Solutions:

* Stop the daemon in the prerm, before the executable file is updated
* Run s-s-d with --stop --pidfile (+ optionally --name) (but not --exec)"

so "start-stop-daemon --stop --pidfile /var/run/exim.pid --name exim" could possibly be used or /etc/init.d/exim stop added to pkg_preinst in the ebuild
Comment 3 Colin Morey (RETIRED) gentoo-dev 2005-01-08 07:35:07 UTC
Should be fixed with all new emerges, (once exim 4.43-r2 hits the tree)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-07-18 03:10:23 UTC
Mass re-assign, maintainer to whom this bug was assigned seems inactive. 
Comment 5 Colin Morey (RETIRED) gentoo-dev 2005-07-18 03:41:12 UTC
I'm not inactive
Comment 6 Colin Morey (RETIRED) gentoo-dev 2005-10-08 02:07:43 UTC
closing. (exim-4.52 going stable today.)