Run: /etc/init.d/amavisd start Result: * Caching service dependencies ... [ ok ] * Starting amavisd-new ... * start-stop-daemon: /usr/sbin/amavisd died [ !! ] * ERROR: amavisd failed to start And that's it. I modified the init script so, on init(), it doesn't use start-stop-daemon but instead just runs /usr/sbin/amavisd directly.
Not baselayout.
emerge --info please.
irrational ~ # emerge --info Portage 2.1.2.3 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r2 x86_64) ================================================================= System uname: 2.6.20-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3300+ Gentoo Base System release 2.0.0_alpha1 Timestamp of tree: Thu, 12 Apr 2007 18:50:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.5-r2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/binutils: 2.17.50.0.14 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer" CHOST="x86_64-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" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,--hash-style=both,-z,relro,--enable-new-dtags,-O1,-z,now,--as-needed" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/mythtv-overlay /usr/portage/local/layman/java-overlay /usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X a52 aac acpi aiglx alsa amd64 animation apache2 artworkextra asf aspnet2 authdaemond avahi avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdda cdparanoia cdr chm cli cracklib crypt cups curl daap dbus dga divx4linux dlloader dpms dri dts dv dvd dvdr dvdread encode exif fam fame fat fbsplash ffmpeg fftw firefox flac foomaticdb fortran freetype gaim gd gdbm geoip gif gimpprint glib glibc-omitfp glitz glut gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 hal hardenedphp hbci howl howl-compat iconv imagemagick imap imlib innodb ipv6 isdnlog ivtv java java5 joystick jpeg jpeg2k junit kde kdehiddenvisibility lcms libfame libg++ libnotify libusb lirc live lm_sensors lzo mad maildir mdnsresponder-compat midi mjpeg mmap mng mono motif mozilla mozsvg mp3 mpeg mpeg2 mplayer musepack mysql mythtv nautilus ncurses network nls nptl nptlonly ntfs nvidia offensive ofx ogg oggvorbis openexr opengl pam pango pcre pdf pdflib perl pic pie png pnp ppd ppds pppd prelude pulseaudio python qt qt3 qt4 quicktime rar readline reflection rtc samba sasl screensaver sdl session sharedmem shout snmp sox speex spell spl sqlite ssl suspend2 svg tcpd theora threads tiff transcode truetype truetype-fonts type-fonts type1-fonts unicode unzip ups usb v4l v4l2 vcd videos vorbis webdav webservices wifi wmf wv x264 xanim xcb xine xinerama xml2 xorg xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0) > Run: > /etc/init.d/amavisd start > Result: > * Caching service dependencies ... > [ ok ] > * Starting amavisd-new ... > * start-stop-daemon: /usr/sbin/amavisd died > [ !! ] > * ERROR: amavisd failed to start > > And that's it. I modified the init script so, on init(), it doesn't use > start-stop-daemon but instead just runs /usr/sbin/amavisd directly. > That's really weird, because I know current initscript works for quite a few users. Have you checked syslog to see why does the process dies?
No errors in the logs, and ps reveals that amavis is running. And it functions fine, too. It's just that the rc script doesn't report the right result. It worked fine under baselayout-1, it's only since I upgraded to baselayout-2 that this problem came up. (In reply to comment #4) > (In reply to comment #0) > > Run: > > /etc/init.d/amavisd start > > Result: > > * Caching service dependencies ... > > [ ok ] > > * Starting amavisd-new ... > > * start-stop-daemon: /usr/sbin/amavisd died > > [ !! ] > > * ERROR: amavisd failed to start > > > > And that's it. I modified the init script so, on init(), it doesn't use > > start-stop-daemon but instead just runs /usr/sbin/amavisd directly. > > > > That's really weird, because I know current initscript works for quite a few > users. Have you checked syslog to see why does the process dies? >
After consulting Roy regarding baselayout2, I've added "--name amavisd" to start-stop-daemon call. This should fix it for you. Please sync in few hours and test.