grobian 15/05/05 12:55:35 Modified: exim.confd Added: exim.rc9 Removed: exim.rc7 Log: Include tidying up Exim's hint databases, bug #262819. Doesn't warrant a revbump since we've been doing without for ages (Portage version: 2.2.14-prefix/cvs/SunOS i386, signed Manifest commit with key 0x5F75F607C5C74E89)
Revision Changes Path 1.2 mail-mta/exim/files/exim.confd file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim.confd?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim.confd?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim.confd?r1=1.1&r2=1.2 Index: exim.confd =================================================================== RCS file: /var/cvsroot/gentoo-x86/mail-mta/exim/files/exim.confd,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- exim.confd 30 May 2004 02:35:58 -0000 1.1 +++ exim.confd 5 May 2015 12:55:34 -0000 1.2 @@ -1,2 +1,5 @@ # Command-line options for running exim EXIM_OPTS="-bd -q15m" + +# Additional flags passed to exim_tidydb upon start (e.g. -t 7d) +TIDY_OPTS="" 1.1 mail-mta/exim/files/exim.rc9 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim.rc9?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim.rc9?rev=1.1&content-type=text/plain Index: exim.rc9 =================================================================== #!/sbin/runscript # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/files/exim.rc9,v 1.1 2015/05/05 12:55:34 grobian Exp $ extra_started_commands="reload" depend() { need logger use antivirus net provide mta } tidy_dbs() { local spooldir=$(/usr/sbin/exim -C /etc/exim/${SVCNAME}.conf -bP -n spool_directory) local db local ret=0 ebegin "Tidying hints databases in ${spooldir}/db" for db in "${spooldir}"/db/* ; do [[ ${db} == *".lockfile" || ${db} == *"*" ]] && continue /usr/sbin/exim_tidydb ${TIDY_OPTS} "${spooldir}" ${db##*/} > /dev/null : $((ret += $?)) done eend ${ret} } start() { # if you use multiple instances, make sure you set spool_directory # in the configfile tidy_dbs ebegin "Starting ${SVCNAME}" start-stop-daemon --start --exec /usr/sbin/exim --pidfile /run/${SVCNAME}.pid -- -C /etc/exim/${SVCNAME}.conf ${EXIM_OPTS:--bd -q15m} eend $? } stop() { ebegin "Stopping ${SVCNAME}" start-stop-daemon --stop --pidfile /run/${SVCNAME}.pid --name exim eend $? } reload() { ebegin "Reloading ${SVCNAME}" start-stop-daemon --signal HUP --pidfile /run/${SVCNAME}.pid --name exim eend $? }
