Code first: (No frame, all native)
`script.php`:
reqiure_once("path/to/HandleClass.php");
function run(){
//
if(A==B) {
// HandleClassDB,
new HandleClass();
}
}
while(true){
run();
sleep(600);
}
`supervisor`,
there is a problem:
- script will appear
process in about half a month, a month or so, but don"t do anything
. - looking up the data, it is said that variables, DB and other resources may be released for a long time, but I think that after
sleep
, re-run ()
is a new execution, and there is no suspension caused by the released resources (is the biggest confusion
).
ask for advice:
- what may be the reason for the suspension of the above processes has been bothering us for a long time.
- Please aim at this situation only. If you change the answer to crontab directly, you won"t have to pay for it: -)