Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245434 - mail-filter/amavisd-new does not keep its pid file under /var/run
Summary: mail-filter/amavisd-new does not keep its pid file under /var/run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 18:48 UTC by Mehmet Giritli
Modified: 2011-07-02 05:41 UTC (History)
1 user (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 Mehmet Giritli 2008-11-03 18:48:29 UTC
This causes the problem that, when the daemon shuts down improperly, pid file remains and on the next attempt to restart, it fails to start because of the remaining pid file. If it creates its pid file under /var/run, then since remaining pid files are cleaned by the bootup init scripts, such problems would be avoided. 

amavisd accepts the pid file parameter with -P. So, its sufficient to simply modify the init file to achieve the desired behavior.

Reproducible: Always
Comment 1 Mehmet Giritli 2008-11-05 09:42:43 UTC
my emerge --info, which I forgot initially to paste here:



Portage 2.1.4.5 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r1 i686)
=================================================================
System uname: 2.6.27-gentoo-r1 i686 AMD Athlon(TM) XP 2200+
Timestamp of tree: Tue, 04 Nov 2008 21:37:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.virginmedia.com/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="tr en en_GB en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac aalib acpi alsa apache2 applet authdaemond autoipd avahi bash-completion beagle berkdb bookmarks branding buffysize bzip2 cairo ccache cdda cddb cdparanoia cdr clamav clamd colordiff cpudetection cracklib crypt css cups cupsddk dbus device-mapper dga djvu dmi dmx dts dvd dvdr dvdread dvi eds enca encode epiphany evo exif extensions fam fasttrack fat fax ffmpeg firefox flac ftp fuse galago gdbm geoip gif gimp glade gnome gnome-keyring gnutls gocr gpg gpgme gpm graphics grub gs gstreamer gtk hal hddtemp howl-compat hpn icons iconv icq id3 id3tag idea idn imap inotify iproute2 irc isc ithreads java java6 javacomm javascript jce jingle jmf jms john jpeg jpeg2k kde keyscrub kolab kpathsea lame latex libcaca libgda libnotify libsamplerate libsexy libvisual libwww linuxthreads-tls lm_sensors logitech-mouse logrotate lvm lzo magic maildir mailwrapper md5sum mdnsresponder-compat mime mimencode mmkeys mmx mmxext mng mono mouse mozdevelop moznoirc moznomail mp3 mpeg msn mudflap musicbrainz nas nautilus ncurses network new-login new-reg-alloc nls nolvm1 nolvmstatic nptl nptlonly nsplugin ntfs nvidia ocamlopt ocrad offensive ogg opengl openmp openssl pam pango pch pcre pdf php pidgin png portaudio posix postscript ppds prediction pstricks pth pulseaudio python qt4 quotas rdesktop readline real remote rss sasl scanner science session sidebar smime smtp sni sockets sound spamassassin spell spl spoof-source sse ssl startup-notification svg sysfs syslog t1lib taglib tagwriting tcpd tex4ht theora threads tiff tools truetype unicode usb userlocales v4l v4l2 vda vhosts vnc vorbis wavpack win32codecs wma wmf x86 xattr xcomposite xine xorg xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="tr en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Joakim 2008-12-02 02:43:21 UTC
I wonder if this is why it says:

mail # /etc/init.d/amavisd status
 * status: crashed

while htop show it running with 1 master and 2 virgin child processes? This might be a bug in it self though, but suspect it's because of this so I am waiting a while to file it as a bug.
Comment 3 Eray Aslan gentoo-dev 2011-07-02 05:41:27 UTC
Please check with amavisd-new-2.7.0 and reopen if necessary.  Should be fixed.