File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6767}
6868
6969
70- // Check if another process is running
70+ // Check whether another instance of this script is already running
7171if (is_file ($ conf ["temppath " ].$ conf ["fs_div " ].".ispconfig_lock " )){
7272 clearstatcache ();
73- for ($ i =0 ;$ i <120 ;$ i ++){ // Wait max. 1200 sec, then proceed
73+ for ($ i =0 ;$ i <120 ;$ i ++){ // Wait max. 1200 sec, then retry
7474 if (is_file ($ conf ["temppath " ].$ conf ["fs_div " ].".ispconfig_lock " )){
75- exec ("ps aux | grep '/usr/local/ispconfig/server/server .php' | grep -v 'grep ' | wc -l " , $ check );
75+ exec ("ps aux | grep '/usr/local/ispconfig/server/[s]erver .php' | wc -l " , $ check );
7676 if (intval ($ check [0 ]) > 1 ) { // 1 because this is 2nd instance!
7777 $ app ->log ("There is already an instance of server.php running. Exiting. " , LOGLEVEL_DEBUG );
7878 exit ;
You can’t perform that action at this time.
0 commit comments