Date: Mon, 23 Apr 2001 11:12:24 -0700 (PDT) From: nsayer@quack.kfu.com To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26801: cyrus port should add periodic file to prune deliverdb Message-ID: <200104231812.f3NICOd54955@medusa.kfu.com>
next in thread | raw e-mail | index | archive | help
>Number: 26801 >Category: ports >Synopsis: cyrus port should add periodic file to prune deliverdb >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 23 11:20:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Nick Sayer >Release: FreeBSD 4.3-RELEASE i386 >Organization: just me >Environment: System: FreeBSD medusa.kfu.com 4.3-RELEASE FreeBSD 4.3-RELEASE #6: Sat Apr 21 08:52:25 PDT 2001 nsayer@medusa.kfu.com:/usr/obj/usr/src/sys/MEDUSA i386 >Description: The cyrus port takes no steps to insure the deliver databases are properly pruned. This can be quite easily accomplished on a daily basis by adding a periodic file to take care of this. This should be a model for other ports that require daily/weekly/monthly actions. Why else did we bother to break up the cron jobs into the /etc/periodic* structure? >How-To-Repeat: >Fix: The port/package should add this as /etc/periodic/daily/600.cyrus: #!/bin/sh # # # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi if [ -x /usr/local/cyrus/bin/deliver ] ; then echo /usr/local/cyrus/bin/deliver -E 3 | su -m cyrus && rc=0 || rc=3 rc=0 else echo "deliver isn't executable" rc=2 fi exit $rc >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104231812.f3NICOd54955>