[systemd-devel] systemd and $PATH
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Mon Jul 27 05:46:22 PDT 2015
On Mon, Jul 27, 2015 at 02:15:31PM +0200, Miroslav Suchý wrote:
> Hi,
> is there anything in systemd what somehow manipulate $PATH.
Systemd sets $PATH to a fixed value for services[1], with /sbin before
/bin. But this shouldn't normally be visible in a user shell, unless
it is run directly as a systemd service.
[1] http://www.freedesktop.org/software/systemd/man/systemd.exec.html#%24PATH
> I am asking because of:
> https://bugzilla.redhat.com/show_bug.cgi?id=1246810
> which claims that when run as
> systemd --user
> it gets /usr/sbin at the begging of $PATH.
> And I have no idea how can I run "systemd --user" command so I can not reproduce it.
You most likely have it running already. Try 'systemctl --user'.
If that prints a list, then you are communicating with the
systemd --user instance for your login id.
Zbyszek
More information about the systemd-devel
mailing list