diff options
author | Christian Hartmann <ian@gentoo.org> | 2007-02-11 19:46:32 +0000 |
---|---|---|
committer | Christian Hartmann <ian@gentoo.org> | 2007-02-11 19:46:32 +0000 |
commit | d3363f86e23bc669ae51a1e8f144a2468882ff49 (patch) | |
tree | a91f1086c2d81a0a8166e53c15a775077ee99a0a /mail-filter | |
parent | Improve tests patch, one less failure although it still doesn't pass. (diff) | |
download | gentoo-2-d3363f86e23bc669ae51a1e8f144a2468882ff49.tar.gz gentoo-2-d3363f86e23bc669ae51a1e8f144a2468882ff49.tar.bz2 gentoo-2-d3363f86e23bc669ae51a1e8f144a2468882ff49.zip |
Added reload function to spamd; bug #159933
(Portage version: 2.1.2-r9)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/spamassassin/ChangeLog | 5 | ||||
-rw-r--r-- | mail-filter/spamassassin/files/3.0.0-spamd.init | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/mail-filter/spamassassin/ChangeLog b/mail-filter/spamassassin/ChangeLog index d7718e75a166..fd535078e3a6 100644 --- a/mail-filter/spamassassin/ChangeLog +++ b/mail-filter/spamassassin/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for mail-filter/spamassassin # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.120 2007/02/02 17:32:57 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.121 2007/02/11 19:46:32 ian Exp $ + + 11 Feb 2007; Christian Hartmann <ian@gentoo.org> files/3.0.0-spamd.init: + Added reload function to spamd; bug #159933 02 Feb 2007; Gustavo Zacarias <gustavoz@gentoo.org> spamassassin-3.1.7.ebuild: diff --git a/mail-filter/spamassassin/files/3.0.0-spamd.init b/mail-filter/spamassassin/files/3.0.0-spamd.init index 82b2c2cb79e9..5a52b2ec946c 100644 --- a/mail-filter/spamassassin/files/3.0.0-spamd.init +++ b/mail-filter/spamassassin/files/3.0.0-spamd.init @@ -1,13 +1,15 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.0.0-spamd.init,v 1.6 2006/10/18 15:53:43 rajiv Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.0.0-spamd.init,v 1.7 2007/02/11 19:46:32 ian Exp $ # NB: Config is in /etc/conf.d/spamd # Provide a default location if they haven't in /etc/conf.d/spamd PIDFILE=${PIDFILE:-/var/run/spamd.pid} +opts="${opts} reload" + depend() { need net before mta @@ -28,3 +30,9 @@ stop() { start-stop-daemon --stop --quiet --pidfile ${PIDFILE} eend $? "Failed to stop spamd" } + +reload() { + ebegin "Reloading configuration" + kill -HUP $(< ${PIDFILE}) + eend $? +} |