Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
11169ce8
Commit
11169ce8
authored
Jun 12, 2009
by
tbrehm
Browse files
Fixed wrong wait time in server.php
parent
8e89f8c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/server.php
View file @
11169ce8
...
...
@@ -54,7 +54,7 @@ if($server_db_record == false) {
// Check if another process is running
if
(
is_file
(
$conf
[
"temppath"
]
.
$conf
[
"fs_div"
]
.
".ispconfig_lock"
)){
clearstatcache
();
for
(
$i
=
0
;
$i
<
120
0
;
$i
++
){
// Wait max. 1200 sec, then proceed
for
(
$i
=
0
;
$i
<
120
;
$i
++
){
// Wait max. 1200 sec, then proceed
if
(
is_file
(
$conf
[
"temppath"
]
.
$conf
[
"fs_div"
]
.
".ispconfig_lock"
)){
exec
(
"ps aux | grep '/usr/local/ispconfig/server/server.php' | grep -v 'grep' | wc -l"
,
$check
);
if
(
intval
(
$check
[
0
])
>
1
)
{
// 1 because this is 2nd instance!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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