This is for the information of others; there is perhaps a documentation issue here.
In version 1.2.0 the configuration of qmHandle has these two options for determining the pid of qmail-send:
# Enter here the system command which returns qmail PID. The following
# should work on most Unixes:
#my ($pidcmd) = 'pidof qmail-send';
my ($pidcmd) = 'svstat /service/qmail-send | sed -e \'s/.*(pid //\' | sed -e \'s/) .*//\'';
In version 1.3.2 the code is:
#####
# Enter here the system command which returns qmail PID. The following
# should work on most Unixes:
my ($pidcmd) = 'pidof qmail-send';
On machines with pidof support you get the error
Can't exec "pidof"
A recent machine build of FreeBSD 6.1 (May 2006)
pidof
is not installed by default. It can installed using the Port sysutils/pidof
Logged In: YES
user_id=1391925
Originator: NO
I walked through all the revisions of qmhandle in cvs to version 1.1.1 (back to revision 1.9 of the qmHandle file) and I cannot find that line of code that looks at svstat output. I was thinking about how to do that myself since that would be the only solution for those who run multiple queues under daemontools.
Too bad I cannot delete comments.