On Mon, Jul 15, 2019 at 11:15:55AM +0200, Klemens Nanni wrote: > On Mon, Jul 15, 2019 at 08:05:56AM +0200, Antoine Jacoutot wrote: > > How so? What makes it behave differently when both options are started > > from rc.d? > Both are started from rc.d through `su -l ...', both get their HOME, > USER, PATH, etc. set - that means different `daemon_user' values will > cause different values in those environment variables. > > `daemon_user=root daemon_flags=-u _gitdaemon' will therefore start as > root, drop privileges, but run with HOME=/root as it is not reset. > > `daemon_user=_gitdaemon' will therefore start as _gitdaemon, not drop > privileges and keep its proper environment, where everything already > matches the running user. Yes I know that, I wrote the framework :-) My question is how will it make it behave different?
-- Antoine