qmHandle for Project Gamera

Requests for RPMS, or new coding projects related to server administration, Plesk, security, or anything else you can think of.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

qmHandle for Project Gamera

Unread post by breun »

I install qmhandle on all our Plesk machines and also installed it on our Project Gamera box. It works fine for just viewing stats and headers, etc., but the $stopqmail and $startqmail variables are geared towards Plesk's implementation:

Code: Select all

my ($stopqmail) = '/etc/init.d/qmail stop';
my ($startqmail) = '/etc/init.d/qmail start';
When you want to remove a message from the queue qmHandle will try to stop qmail, but this fails on the PG imlementation of qmail, because it doesn't use /etc/init.d:
Can't exec "/etc/init.d/qmail": No such file or directory at
/usr/bin/qmhandle.pl line 192 (#1)
(W exec) A system(), exec(), or piped open call could not execute the
named program for the indicated reason. Typical reasons include: the
permissions were wrong on the file, the file wasn't found in
$ENV{PATH}, the executable in question was compiled for another
architecture, or the #! line in a script points to an interpreter that
can't be run for similar reasons. (Or maybe your system doesn't support
#! at all.)
I changed the variables to this:

Code: Select all

my ($stopqmail) = '/usr/bin/svc-stop qmail';
my ($startqmail) = '/usr/bin/svc-start qmail';
Works now.
Lemonbit Internet Dedicated Server Management
Post Reply