php - Laravel 5.2 run command as daemon/forever -


once have command method, this one, possible keep commad running forever?

so far have ajax calls for

\artisan::queue('socket:start'); 

'socket:start' command.

that work, 30 seconds. after process dies.

i tried run daemon process, as laravel documentation says no luck.

how can give user option run command, , keep alive in background forever?

you're running problem because apache version of php has timeout. default cli version not, can use php's exec() function run artisan command should work:

exec('php artisan socket:start'); 

as usual, use if know going exec().


Comments