[systemd-devel] Started process not attach to its related service.

Mantas Mikulėnas grawity at gmail.com
Tue Nov 22 10:19:24 UTC 2016


So, uh, that sounded like you value updating one file less (and even mixing
user and daemon configs) above having the service actually work?

Not that it's an excuse anyway. Systemd units have EnvironmentFile= for
importing environment variables. Even init.d scripts can use `source` with
the same effect, as can users' own .profile or .foorc scripts... There are
plenty of nice ways to "share environment variables" without using su.

That said, at least try `runuser`...

On Tue, Nov 22, 2016, 12:07 Benoit SCHMID <Benoit.Schmid at unige.ch> wrote:

> Hello,
>
> On 11/22/2016 10:58 AM, Jonathan de Boyne Pollard wrote:
> > Don't abuse su for dropping privileges.
>
> I agree that using su has drawbacks.
>
> But it also have advantages.
> When you upgrade your db, you upgrade the environment variables.
> Therefore using su allow you to centralised everything in one place
> (user settings).
>
> This is why, after thinking of the pros and cons, I use su,
> even if I agree with you, on the fact that should not abuse :-)
>
> Regards,
>
> --
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>
>      Benoit Schmid              Tel: (+41-22) 379-7209
>
>      University of Geneva - Information Technology Division
>
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20161122/71ec9487/attachment.html>


More information about the systemd-devel mailing list