First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 134118
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gustavo Zacarias (RETIRED) <gustavoz@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Josh Catana <jcatana@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 134118 depends on: Show dependency tree
Show dependency graph
Bug 134118 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-23 07:55 0000
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 From Gustavo Zacarias (RETIRED) 2006-05-29 11:09:30 0000 -------
0.3.1-r1 in with revamped initscript, support for options and dropped privs by
default.
Thanks for the report.

First Last Prev Next    No search results available      Search page      Enter new bug