We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10df6dc commit 9b82d29Copy full SHA for 9b82d29
1 file changed
server/server.php
@@ -67,12 +67,12 @@
67
}
68
69
70
-// Check if another process is running
+// Check whether another instance of this script is already running
71
if(is_file($conf["temppath"].$conf["fs_div"].".ispconfig_lock")){
72
clearstatcache();
73
- for($i=0;$i<120;$i++){ // Wait max. 1200 sec, then proceed
+ for($i=0;$i<120;$i++){ // Wait max. 1200 sec, then retry
74
75
- exec("ps aux | grep '/usr/local/ispconfig/server/server.php' | grep -v 'grep' | wc -l", $check);
+ exec("ps aux | grep '/usr/local/ispconfig/server/[s]erver.php' | wc -l", $check);
76
if(intval($check[0]) > 1) { // 1 because this is 2nd instance!
77
$app->log("There is already an instance of server.php running. Exiting.", LOGLEVEL_DEBUG);
78
exit;
0 commit comments