Used for long running CLI daemons using Codeingiter