$FreeBSD: ports/mail/qmHandle/files/patch-qmHandle,v 1.1 2003/01/23 13:32:09 petef Exp $

--- 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) = '%%LOCALBASE%%/etc/rc.d/qmail.sh stop';
+my ($startqmail) = '%%LOCALBASE%%/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  ####################
 



