Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
355feb42
Commit
355feb42
authored
Feb 15, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#3278 - Semaphore processes httpd rescue
parent
91bb6126
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
server/mods-available/rescue_core_module.inc.php
server/mods-available/rescue_core_module.inc.php
+11
-0
No files found.
server/mods-available/rescue_core_module.inc.php
View file @
355feb42
...
...
@@ -272,6 +272,17 @@ class rescue_core_module {
/* Set the new try counter */
$this
->
_rescueData
[
'webserver'
][
'try_counter'
]
=
$tryCount
;
if
(
$tryCount
>
2
&&
$conf
[
'serverconfig'
][
'web'
][
'server_type'
]
!=
'nginx'
)
{
if
(
$app
->
system
->
is_user
(
'apache'
))
{
$app
->
log
(
"Clearing semaphores table for user apache."
,
LOGLEVEL_WARN
);
exec
(
"ipcs -s | grep apache | awk '{ print $2 }' | xargs ipcrm sem"
);
}
if
(
$app
->
system
->
is_user
(
'www-data'
))
{
$app
->
log
(
"Clearing semaphores table for user apache."
,
LOGLEVEL_WARN
);
exec
(
"ipcs -s | grep www-data | awk '{ print $2 }' | xargs ipcrm sem"
);
}
}
/* if 5 times will not work, we have to give up... */
if
(
$tryCount
>
5
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment