Permalink
Browse files

Added log delete when server is up again

  • Loading branch information...
1 parent c1c77c5 commit 1e16c396c92a241e0cc7706214a5e479fa1122c2 @aatishnn committed Nov 20, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 index-cli.php
View
@@ -37,6 +37,9 @@
else {
echo "Server Up\n";
fclose($connection);
+ if(file_exists($logfile)){
+ unlink($logfile);
+ }
}
sleep($checkinterval);
}

0 comments on commit 1e16c39

Please sign in to comment.