[Bug 193818] spamd should start before sendmail

bugzilla at redhat.com bugzilla at redhat.com
Wed Jun 7 16:38:01 UTC 2006


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: spamd should start before sendmail


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193818





------- Additional Comments From paul at city-fan.org  2006-06-07 12:30 EST -------
(In reply to comment #4)
> Going into FC6 for now.  Will bring this back into FC5 later.  Does chkconfig
> properly handle removing the previous S80 files when this number is changed?

No, you would need some trickery like this to fix the starting sequence:

/sbin/chkconfig --add spamassassin
LEVELS=$(/sbin/chkconfig --list spamassassin | sed -e 's/[0-6]:off//g;s/[^0-6]//g')
/sbin/chkconfig --del spamassassin
/sbin/chkconfig --add spamassassin
[ -n "$LEVELS" ] && /sbin/chkconfig --levels $LEVELS spamassassin on

The first --add makes sure that chkconfig knows about spamassassin for a
first-time install, and has no effect on upgrades.

The subsequent stuff records the current runlevels, removes the existing links,
adds in new ones, and restores the runlevels to the original settings.

A facility to do something like this would be nice to have within chkconfig
itself of course.

-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the Fedora-perl-devel-list mailing list