I start fetchmail in daemon mode everytime I log in to my user (not root) account.
Commandline is "fetchmail --keep -d 500". Before system update everything went well and fetchmail was terminated on logout. With term signal fetchmail cleans after itself removing ~/.fetchmail.pid.
Now I have sys-apps/baselayout-18.104.22.168 and I can see that on shutdown fetchmail is terminated
with kill --> lockfile is not removed.
I have tried this with several commandlines. Here are results:
- Command "reboot" works and fetchmail is cleanly terminated
- Command "shutdown -r now" does NOT work --> fetchmail is harshly killed and it has no time to clean up.
- Command "halt" does NOT work, same as above
Problem started when I updated my system and sys-apps/baselayout-22.214.171.124 got
Steps to Reproduce:
1.As normal user: "fetchmail --keep -d 500"
3."shutdown -r now"
After machine boots and I try to start fetchmail it stops because there is
old, obsolete lockfile ~/.fetchmail.pid. After I remove this file I can again
I tested with kill how fetchmail works. I learned that when killing with -9 it
does not clean lockfile (this is the case here). When killing with term signal
-15 it cleans lockfile nicely.
I think that other programs are as well killed with -9 on shutdown. But I can't
prove it. Anyway I think this is a bug anyway. Of course shutdown should try
terminate before harsh killing.
Terminate running programs on shutdown, NOT kill them.
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test11)
System uname: 2.6.0-test11 i686 AMD Duron(tm) processor
Gentoo Base System version 126.96.36.199
CFLAGS="-Os -mcpu=i686 -pipe"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
CXXFLAGS="-Os -mcpu=i686 -pipe"
FEATURES="autoaddcvs ccache sandbox"
USE="X alsa apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif
mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2
xmms xv zlib"
Prob the bootsplash related changes.
please try latest baselayout
contacted via e-mail; user has lost his linux
if you have have occassion to test this again, please re-open