Add info about starting worker with nohup. Issue #100.

This commit is contained in:
ket4yii 2017-07-17 03:01:14 +07:00 committed by Dmitry Khomutov
parent c78ac2d09e
commit 1914ec177c
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -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 </dev/null & # and you can save pid in pidfile with echo "$!" > /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.