Add doc about how to run worker with systemd#98
Add doc about how to run worker with systemd#98ketchoop wants to merge 2 commits intophp-censor:masterfrom
Conversation
|
Thanks @ketchoop! I will try to test it soon and will write about it in the issue. |
|
@ketchoop TODO: Write about enable. |
|
It works if make changes for param |
|
My full unit config: |
|
@corpsee why does it need this |
|
I don't realy know, but console param |
|
It works for me. Could you restart it and show me last logs from |
|
It's strange, but now it works. I guess I overconfigurated somewhere 😄 |
|
@corpsee but what about User and Group? Is it OK for you? |
|
My full config now: |
|
And it would be great if we had a unit config to start a few workers simultaneously. I guess we should use |
|
Type=forking means, that process is daemonized by fork strategy. But what you want can be done by hands with systemd specifiers. Something like |
|
@corpsee I think, the best and simple way to run several workers is just copy more units with different. I can add docs about this way. I need your opinion. |
|
@ketchoop It is normal for me. We can update it later if we will have more info. |
|
@ketchoop I suggest to merge it now and update when you have additional information. It will OK? |
|
@corpsee just check it and feel free to merge 😃 |
|
I merged it manualy with rebase. Thanks @ketchoop! |
I didn't check this simple unit with PHPCensor server. Just tried to start it. So, it'll be great if you check this more carefully. And maybe I should write more about the unit and how to start it. Anyway, just leave comments about it and I can change it or just do it by yourself:)