Welcome Guest, Not a member yet? Register   Sign In
How to Shut Down CI App?
#2

[eluser]WanWizard[/eluser]
I have a maintenance flag in my configuration (which I load from the database and merge with the config loaded from file).

In my code I test this flag before I restore the user session, so whether or not a user is logged in is not relevant. The next page request hits the maintenance code first.

My cron functions (=module controllers) are all managed by a cron controller, which uses a crontab like database table to determine which jobs to start when, and also logs the state of each job. Only the cron controller itself is started by the OS cron process. So I always know which jobs are currently active, and when they were started. This also allows multiple instances of the cron process, if I want to enable multiple parallel cron processes.


Messages In This Thread
How to Shut Down CI App? - by El Forum - 09-08-2010, 03:36 PM
How to Shut Down CI App? - by El Forum - 09-08-2010, 05:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB