• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

websrvmng slow AGAIN

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.)


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:
Hmmm. didn't work...

I tried adding the INSERT INTO misc VALUES ('restart_apache_gracefully', 'true'); into the PSA db.
Apache still does not restart gracefully.

running /usr/local/psa/admin/sbin/websrvmng --restart takes 6-7 seconds and the error log shows:
[notice] caught SIGTERM, shutting down

running apachectl graceful takes 3 seconds and the error log shows:
[notice] Graceful restart requested, doing restart
 
Back
Top