JP Kelly
Regular Pleskian
After upgrading to 10.3.1 responses from calls (from WHMCS) to the API fail. This seems to be because websrvmng takes too long to restart Apache. This problem was fixed under 10.2 but now on 10.3.1 the problem has returned.
I have had to use the fix which replaces calls to /usr/local/psa/admin/sbin/websrvmng --restart with /etc/init.d/httpd graceful. This is accomplished by renaming the existing websrvmng binary to websrvmng.ORIG and replacing the original websrvmng binary with the following Perl script. (Remember to chmod 755.)
To Parallels: Why cant websrvmng do a graceful restart?
___
I have had to use the fix which replaces calls to /usr/local/psa/admin/sbin/websrvmng --restart with /etc/init.d/httpd graceful. This is accomplished by renaming the existing websrvmng binary to websrvmng.ORIG and replacing the original websrvmng binary with the following Perl script. (Remember to chmod 755.)
Code:
#!/usr/bin/perl
# rebuild command line;
my $commandline='';
foreach $argnum (0 .. $#ARGV) {
$commandline .= ' ' . $ARGV[$argnum];
}
if( $commandline =~ /--restart/ ){
system("/etc/init.d/httpd graceful");
} else {
$cmd="/usr/local/psa/admin/sbin/websrvmng.ORIG $commandline";
system $cmd;
}
To Parallels: Why cant websrvmng do a graceful restart?
___
Last edited: