Bug 85189 - Spassassin init script blocks when run
Summary: Spassassin init script blocks when run
Keywords:
Status: CLOSED DUPLICATE of bug 84445
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: spamassassin
Version: 9
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chip Turner
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-02-26 13:56 UTC by Keith Sharp
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-21 18:51:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Keith Sharp 2003-02-26 13:56:54 UTC
Description of problem:

When you run the command "/sbin/service spamassassin start" the spamd process
is started but the service command never returns control to the shell.  

On further investigation it looks like the script /etc/init.d/spamassassin tests
for the existance of the file /etc/sysconfig/spamassassin and if it exists it
sources this file.  If the file does not exist then the init script assigns some
default values to the variable $OPTIONS.  These defaults include the "-d" flag
to run the spamd process as a daemon.  $OPTIONS is passed to the spamd process
on line 35 of the init script.

The problem is that the file /etc/sysconfig/spamassassin exists by default, but
uses the variable name $SPAMDOPTIONS rather than $OPTIONS.  This means that the
spamd process is never passed any options, and hence blocks rather than
backgrounding.

The fix would appear to be to use consistent variable names across the two
files: /etc/init.s/spamassassin and /etc/sysconfig/spamassassin.

Version-Release number of selected component (if applicable):

spamassassin-2.44-7.8.x

How reproducible:

Every time.

Steps to Reproduce:
1. run the command "/sbin/service spamassassin start"
2. wait for control to return
3. keep waiting, and waiting......
    
Actual results:

Control never returns to shell from which the spamassassin init script is launched.

Expected results:

The spamd process should be run with the "-d" flag so that control returns to
the shell when  the init script is run.

Additional info:

See above.

Comment 1 Chip Turner 2003-02-26 14:52:35 UTC

*** This bug has been marked as a duplicate of 84445 ***

Comment 2 Red Hat Bugzilla 2006-02-21 18:51:59 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.