Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218008 - mail-filter/spamassassin Spamd: error in initscript (openrc)
Summary: mail-filter/spamassassin Spamd: error in initscript (openrc)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-16 19:46 UTC by Karel De Vriendt
Modified: 2008-05-14 21:26 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Modified init script (spamd,894 bytes, text/plain)
2008-04-20 16:39 UTC, Karel De Vriendt
Details

Note You need to log in before you can comment on or make changes to this bug.
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.