Date: Thu, 16 Jan 2003 11:19:46 +0100 From: Marco Molteni <molter@tin.it> To: FreeBSD-gnats-submit@FreeBSD.org Cc: petef@FreeBSD.org Subject: ports/47137: [FIX] ports/mail/qmHandle Message-ID: <20030116101946.GA26350@cobweb.example.org>
next in thread | raw e-mail | index | archive | help
>Number: 47137 >Category: ports >Synopsis: [FIX] mail/qmHandle >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 16 02:20:03 PST 2003 >Closed-Date: >Last-Modified: >Originator: Marco Molteni >Release: FreeBSD 4.7-STABLE i386 >Organization: Citello Networks >Environment: FreeBSD cobweb.example.org 4.7-STABLE >Description: Port mail/qmHandle doesn't work out of the box, since many parameters are set for a Linux system. More exactly, it works only in read-mode, but it cannot perform any modification to the qmail queue. >How-To-Repeat: Install the port and try to remove a message from the qmail queue. It will fail saying that it cannot find the PID of qmail-send: root@cobweb[/var/qmail]# qmHandle -d737 Can't exec "pidof": No such file or directory at /usr/local/bin/qmHandle line 322 (#1) >Fix: Put following patch file in ports/mail/qmHandle/files/patch-qmHandle: --- qmHandle.orig Thu Jan 16 10:05:21 2003 +++ qmHandle Thu Jan 16 10:31:33 2003 @@ -26,8 +26,12 @@ #my ($startqmail) = '/usr/local/bin/svc -u /service/qmail-send'; # While this is if you have a Debian GNU/Linux with its qmail package -my ($stopqmail) = '/etc/init.d/qmail stop'; -my ($startqmail) = '/etc/init.d/qmail start'; +#my ($stopqmail) = '/etc/init.d/qmail stop'; +#my ($startqmail) = '/etc/init.d/qmail start'; + +# This is if you have FreeBSD with its qmail package +my ($stopqmail) = '/usr/local/etc/rc.d/qmail.sh stop'; +my ($startqmail) = '/usr/local/etc/rc.d/qmail.sh start'; # If you don't have scripts, leave $stopqmail blank (the process will # be hunted and killed by qmHandle): @@ -43,7 +47,10 @@ ##### # Enter here the system command which returns qmail PID. The following # should work on most Unixes: -my ($pidcmd) = 'pidof qmail-send'; +#my ($pidcmd) = 'pidof qmail-send'; +# This is for FreeBSD with a standard qmail installation: +my ($pidcmd) = 'ps -U qmails | grep qmail-send | cut -s -d " " -f 3'; + #################### USER CONFIGURATION END #################### >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030116101946.GA26350>