From 1914ec177c3a8ca07a9bdd397f8848f575110239 Mon Sep 17 00:00:00 2001 From: ket4yii Date: Mon, 17 Jul 2017 03:01:14 +0700 Subject: [PATCH] Add info about starting worker with nohup. Issue #100. --- docs/en/workers/worker.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/en/workers/worker.md b/docs/en/workers/worker.md index 06c142ed..b1644c82 100644 --- a/docs/en/workers/worker.md +++ b/docs/en/workers/worker.md @@ -59,4 +59,12 @@ php-censor 19057 0.0 0.9 200244 18720 ? S 03:00 0:01 php /php-c php-censor 19058 0.0 0.9 200244 18860 ? S 03:00 0:01 php /php-censor/console php-censor:worker ``` +Also you can simple daemonise worker by `nohup`: + +``` +nohup /path/to/php-censor/bin/console php-censor:worker &> /var/log/php-censor-worker.log /var/run/php-censor-worker.pid, but it's not really necessary +``` + +But keep in mind: it won't restart your worker if it fails and can be inconvenient to manage worker process in contrast with other solutions. So, it's good for debug purposes or as temporary solution. + That's it! Now, whenever you create a new build in PHP Censor, it should start building immediately.