summaryrefslogtreecommitdiff
path: root/mail/qmhandle/files/patch-qmHandle
blob: e0b05bfe1b915ed70ea42bc7eb6ce0b6341a6c23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$FreeBSD$

--- 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 1';
+
 
 ####################  USER CONFIGURATION END  ####################