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

Bug 218008

Summary: mail-filter/spamassassin Spamd: error in initscript (openrc)
Product: Gentoo Linux Reporter: Karel De Vriendt <kdvgent>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: avenj, ehmsen, gentoobugzilla.selective272, kdvgent, rob, sbriesen, world.root
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Modified init script

Description Karel De Vriendt 2008-04-16 19:46:49 UTC
The init script (etc/init.d/spamd) does not work any more after update to openrc and baselayout-2 

Reproducible: Always

Steps to Reproduce:
1. Update to openrc/baselayout-2
2. /etc/init.d/spamd (re)start
3.
Actual Results:  
/etc/init.d/spamd start
 * Starting spamd ...
 * start-stop-daemon: /usr/sbin/spamd is a script
 * start-stop-daemon: and should be started, stopped or signalled with
 * start-stop-daemon: --exec /usr/bin/perl -w /usr/sbin/spamd
 * start-stop-daemon: or you should specify a pidfile or process name
 * Failed to start spamd                                                  [ !! ]
 * ERROR: spamd failed to start


Expected Results:  
Service to be started

Worked correctly before but apparently start-stop-daemon in openrc is a bit more picky about correct invocations
Comment 1 SchAmane 2008-04-18 05:06:34 UTC
(In reply to comment #0)
>  * start-stop-daemon: /usr/sbin/spamd is a script
>  * start-stop-daemon: and should be started, stopped or signalled with
>  * start-stop-daemon: --exec /usr/bin/perl -w /usr/sbin/spamd
>  * start-stop-daemon: or you should specify a pidfile or process name
>  * Failed to start spamd                                                  [ !!

Solution from http://bugs.gentoo.org/show_bug.cgi?id=178772 worked here for me.
Comment 2 Karel De Vriendt 2008-04-20 16:39:54 UTC
Created attachment 150430 [details]
Modified init script

Line starting with "--name ..." added
Comment 3 Karel De Vriendt 2008-04-20 16:40:14 UTC
See the modified script (line starting with --name is added).

Found this solution (workaround?) in a baselayout-2 thread on the Gentoo forum:
http://forums.gentoo.org/viewtopic-t-656399-postdays-0-postorder-asc-start-50.html
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2008-05-14 21:14:35 UTC
please fix it (or I do). ;-)
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2008-05-14 21:26:21 UTC
I did. fixed init-script in CVS. Just re-emerge and you should be fine.