I
I
Ilyas Galiev2015-10-15 08:25:34
PHP
Ilyas Galiev, 2015-10-15 08:25:34

How to run a constantly running script in ubuntu (gearman)?

I'm trying to work normally with gearman, but as soon as I need to do something, I have to put the script on permanent execution again.
After searching for the reason, I realized that I need to run it along with the nohup command. But there were no fewer problems. Why is the script breaking? I thought about running and checking through cron, but in this case, the script may break during a process that takes a very long time (import from XML), which I do not need at all. What's the matter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kubintsev, 2015-10-15
@akubintsev

Did you put a script in the background? nohup .... &
You also need to check the value of the php parameter max_execution_time
Enable logging, it may be crashing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question