Re: [Cppcms-users] Run cppcms service as daemon
Brought to you by:
artyom-beilis
|
From: Artyom <art...@ya...> - 2010-11-22 17:25:15
|
>
> Would it be even better to also add options "user" and "group" under
> "service.socket" so we can specify something like the following?
>
> service: socket {
> "path": "/tmp/cppcms.socket",
> "user":"www-data",
> "group":"www-data"
> }
User and group are properties of the process and you can change them only
using forking that is generally done when you daemonize process,
so they have nothing to do with socket.
Also note that TCP sockets (and Unix ones as well) binded before
switching user to allow for example to listen on port 80 that only
super-user can do. So putting it to "socket" section would be misleading.
Artyom
|