Welcome Guest, Not a member yet? Register   Sign In
taking down the system
#2

(This post was last modified: 08-26-2018, 12:32 AM by ragingTorch.)

I haven't played with setting variables in _SERVER global in this manner nor have I seen it in the wild.

You could go with a lock file solution to track when the cron starts and ends for your other files

Along the lines of
PHP Code:
file_put_contents('cron.lock'time());
//do your cron things here
unlink('cron.lock'); 

In your index, you can do
PHP Code:
if(file_exists('cron.lock'))
{
show_error("The Substantiator is down for weekly maintanance. ",500,"System down");
exit(
0);

Reply


Messages In This Thread
taking down the system - by richb201 - 08-25-2018, 07:32 PM
RE: taking down the system - by ragingTorch - 08-25-2018, 08:14 PM
RE: taking down the system - by richb201 - 08-26-2018, 06:06 AM
RE: taking down the system - by ragingTorch - 08-26-2018, 07:02 AM
RE: taking down the system - by richb201 - 08-26-2018, 08:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB