Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263191 - net-mail/fetchmail-6.3.9-r1 fails to start via initscript (but works fine without)
Summary: net-mail/fetchmail-6.3.9-r1 fails to start via initscript (but works fine wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 00:21 UTC by Robin Bankhead
Modified: 2011-05-12 09:41 UTC (History)
4 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 Robin Bankhead 2009-03-21 00:21:03 UTC
/etc/init.d/fetchmail start
* Starting fetchmail...                         [ !! ]
* ERROR: fetchmail failed to start

No other output on shell or in any logs I can find. It will start and daemonize successfully on the commandline however, with the command:

fetchmail -d 300 -f /etc/fetchmailrc

The current version was emerged about a month ago, but I only rebooted the machine a week ago which is when mail stopped coming in. Last openrc update was about the same time though, so either could be the problem I guess.

emerge --info:
Portage 2.1.6.8 (default/linux/x86/2008.0/server, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 i686)                                                                                           
=================================================================                                  
System uname: Linux-2.6.28-gentoo-r3-i686-Pentium_III_-Coppermine-with-glibc2.0                    
Timestamp of tree: Fri, 20 Mar 2009 20:20:01 +0000                                                 
distcc 3.1 i686-pc-linux-gnu [disabled]                                                            
ccache version 2.4 [enabled]                                                                       
app-shells/bash:     4.0_p10-r1                                                                    
dev-java/java-config: 2.1.7                                                                        
dev-lang/python:     2.5.4-r2                                                                      
dev-util/ccache:     2.4-r8                                                                        
sys-apps/baselayout: 2.0.0                                                                         
sys-apps/openrc:     0.4.3-r1                                                                      
sys-apps/sandbox:    1.6                                                                           
sys-devel/autoconf:  2.63                                                                          
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2                                               
sys-devel/binutils:  2.19.1-r1                                                                     
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6a                                                                        
virtual/os-headers:  2.6.28-r1                                                                     
ACCEPT_KEYWORDS="x86 ~x86"                                                                         
CBUILD="i686-pc-linux-gnu"                                                                         
CFLAGS="-O2 -pipe -march=pentium3 -mmmx -msse -mfpmath=sse"                                        
CHOST="i686-pc-linux-gnu"                                                                          
CONFIG_PROTECT="/etc /etc/make.conf"                                                               
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"        
CXXFLAGS="-O2 -pipe -march=pentium3 -mmmx -msse -mfpmath=sse"                                      
DISTDIR="/var/cache/http-replicator"
FEATURES="ccache distlocks fixpackages nodoc noinfo parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X509 a52 aac acl acpi aim apache2 berkdb bzip2 clamav cli cracklib crypt cups curl curlwrappers dba dbm dbus dbx dio dri dv encode exif fastcgi ffmpeg foomaticdb fortran ftp gd gd-external gdbm glut gpm hal hardened hardenedphp iconv icq imagemagick imap innodb isdnlog java javascript jpeg kerberos lcms ldap libwww mad mailwrapper matroska mcal midi minimal mmx mmxext mp3 mudflap mysql ncurses nls nptl nptlonly offensive ogg openmp pam pcre perl php png portaudio posix ppds pppd python readline reflection samba scanner session sharedmem snmp soap spl sse ssl sysfs tcpd theora threads tidy tiff tokenizer truetype unicode usb vcd vhosts win32codecs x86 xine xml xml2 xmlrpc xorg xsl xvid zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooksiec958 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 autoindexcache 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="ati fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2009-03-24 08:57:03 UTC
I guess this is a follow up on bug 124387
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-24 13:04:06 UTC
(In reply to comment #1)
> I guess this is a follow up on bug 124387
> 

Thanks for adding me here.

Arthur, I didn't see bug 124387 comment #38. Did you have a further suggestion? Doesn't fetchmailconf write /etc/fetchmailrc? I don't want to patch that program too.
Comment 3 Marc Arens 2009-06-03 10:38:12 UTC
"Non-root-owned files in /etc is not a good idea..."

But that is currently needed to make fetchmail start isn't it?
Comment 4 Arthur Hagen 2009-06-03 17:41:12 UTC
(In reply to comment #3)
> "Non-root-owned files in /etc is not a good idea..."
> 
> But that is currently needed to make fetchmail start isn't it?
> 

No, it's not needed, although it's currently done.  A solution is in the referenced ticket -- have the file stored elsewhere, and use a symlink from /etc.
Comment 5 Marc Arens 2009-06-03 18:27:58 UTC
sorry for spamming this bug, just out of curiosity, what is tha bad thing about non-root owned files in /etc?

e.g.

-rw------- 1 fetchmail root 1389 Jun  3 20:23 fetchmailrc
Comment 6 Robin Bankhead 2011-03-22 17:50:38 UTC
I've just tried again with current fetchmail and the initscript now works again. As this is pretty old and I haven't been keeping tabs for a while I've no idea which version fixed it, sorry.
Comment 7 Eray Aslan gentoo-dev 2011-05-12 09:41:05 UTC
(In reply to comment #6)
> I've just tried again with current fetchmail and the initscript now works
> again. As this is pretty old and I haven't been keeping tabs for a while I've
> no idea which version fixed it, sorry.

OK.  Closing then.  Thanks.