Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1147

Summary: "/etc/init.d/exim stop" doesn't use the right pid-file
Product: Gentoo Linux Reporter: Christian Loitsch <gentoo-bug>
Component: Current packagesAssignee: Ben Lutgens (RETIRED) <lamer>
Status: RESOLVED FIXED    
Severity: minor CC: gentoo-bug
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Loitsch 2002-03-14 10:09:31 UTC
if EXIM_OPTS is e.g. set to -bd only.

Easy fix:
change stop to
stop() {
        ebegin "Stopping exim"
        start-stop-daemon --stop --quiet --pidfile /var/run/exim.pid*
        eend $?
}
Comment 1 Ben Lutgens (RETIRED) gentoo-dev 2002-05-26 14:30:39 UTC
This appears to have done it.
stop() {
   ebegin "Stopping exim"
      start-stop-daemon --stop --quiet --exec /usr/sbin/exim
   eend $?
}
Comment 2 Ben Lutgens (RETIRED) gentoo-dev 2002-05-26 14:38:29 UTC
stop() {
   ebegin "Stopping exim"
      start-stop-daemon --stop --quiet --exec /usr/sbin/exim
   eend $?
}

This should fix it, at least with exim-4. If anyone tests this with exim-3 let
me know so I can close this.
Comment 3 Ben Lutgens (RETIRED) gentoo-dev 2002-05-26 22:37:48 UTC
Fixed. The new initscript works great.