Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134118 - spamass-milter missing options directive in conf.d
Summary: spamass-milter missing options directive in conf.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gustavo Zacarias (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 07:55 UTC by Josh Catana
Modified: 2006-05-29 11:09 UTC (History)
0 users

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 Josh Catana 2006-05-23 07:55:50 UTC
Would like to change the spamass-milter package to have it's conf.d/spamass-milter file to include an options directive. Currently you have to edit the init script to add options. Not a huge deal just a little annoying and maybe unclear to some users.

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.conf,v 1.2 2004/07/14 22:29:01 agriffis Exp $

DAEMON=/usr/sbin/spamass-milter
SOCKET=/var/run/spamd/spamass-milter.sock
PIDFILE=/var/run/spamd/spamass-milter.pid
DESC="Sendmail milter plugin for SpamAssassin"
OPTIONS="-f"

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.rc,v 1.2 2004/07/14 22:29:01 agriffis Exp $

# NB: Config is in /etc/conf.d/spamass-milter

depend() {
        need net spamd
        use logger
        before sendmail
}

start() {
        ebegin "Starting $DESC"
        start-stop-daemon --start --quiet --make-pidfile --pidfile ${PIDFILE}\
                --exec ${DAEMON} -- -p ${SOCKET} ${OPTIONS}
        eend $? "Failed to start ${DAEMON}"
}

stop() {
        ebegin "Stopping $DESC"
        {
                killall ${DAEMON}
                /bin/sleep 5s
                /bin/rm -f ${SOCKET}
                /bin/rm -f ${PIDFILE}
        } && kill -1 `head -n 1 /var/run/sendmail.pid`
        eend $? "Failed to stop ${DAEMON}"
}
Comment 1 Gustavo Zacarias (RETIRED) gentoo-dev 2006-05-29 11:09:30 UTC
0.3.1-r1 in with revamped initscript, support for options and dropped privs by default.
Thanks for the report.