Le 11/05/2014 09:22, Marc Haber a écrit :
>> Systemd (as upstart) sidesteps this problem to a large degree by handling
>> uid switching as a native directive, avoiding the need to call out to a
>> separate command.
> Just out of curiosity: What do I do when I convert an init script that
> parses a mode 600 configuration file (containing passwords), does
> necessary things as root and then starts a non-root daemon to systemd?
> How do I do that with using a "native directive"?
>
In systemd, the ExecStartPre directive can be helpful. But the
documentation doesn't say if it is executed as the user defined in the
User directive, or as root. I guess the latter is done, but I'm too lazy
right now to test it :)


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/536f2d21.8070...@antipoul.fr

Reply via email to