abazoskib Posted August 8, 2009 Share Posted August 8, 2009 i have several scripts that run at different times during the day on my server(some every 2 hours, some every 10 minutes, etc..). Each script creates a blank lock file, so I can tell what is running without using ps aux every time, and to make sure a duplicate process does not get spawned while it is running. At the end of the scripts I use unlink($fileName), however I noticed that once in a while it will not delete the lock file, yet the process is over, and no error messages as far as I can tell. Anyone see this before? Link to comment https://forums.phpfreaks.com/topic/169395-unlink-fails-once-in-a-while/ Share on other sites More sharing options...
zq29 Posted August 8, 2009 Share Posted August 8, 2009 Are the scripts fully executing within the maximum execution time? Link to comment https://forums.phpfreaks.com/topic/169395-unlink-fails-once-in-a-while/#findComment-893810 Share on other sites More sharing options...
abazoskib Posted August 8, 2009 Author Share Posted August 8, 2009 it is currently set at 90 if i remember correctly, but now that you meantion, perhaps i should set it to 0, because i use PHP primarily for server side scripting. i only use one file for web interaction, out of the hundred something scripts i have. would that fix it? Link to comment https://forums.phpfreaks.com/topic/169395-unlink-fails-once-in-a-while/#findComment-893823 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.