We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91bb612 commit 355feb4Copy full SHA for 355feb4
1 file changed
server/mods-available/rescue_core_module.inc.php
@@ -272,6 +272,17 @@ private function _rescueHttpd(){
272
273
/* Set the new try counter */
274
$this->_rescueData['webserver']['try_counter'] = $tryCount;
275
+
276
+ if ($tryCount > 2 && $conf['serverconfig']['web']['server_type'] != 'nginx') {
277
+ if($app->system->is_user('apache')) {
278
+ $app->log("Clearing semaphores table for user apache.",LOGLEVEL_WARN);
279
+ exec("ipcs -s | grep apache | awk '{ print $2 }' | xargs ipcrm sem");
280
+ }
281
+ if($app->system->is_user('www-data')) {
282
283
+ exec("ipcs -s | grep www-data | awk '{ print $2 }' | xargs ipcrm sem");
284
285
286
287
/* if 5 times will not work, we have to give up... */
288
if ($tryCount > 5){
0 commit comments