> On 9. Jun 2017, at 13:26, Sven Van Caekenberghe <[email protected]> wrote:
Hey,
> Why would $HOME not be set ?
In this specific case runit doesn't export HOME when starting my service but
looking at systemd and picking a random service like exim4.service I see:
$ strings /proc/946/environ
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=C
_SYSTEMCTL_SKIP_REDIRECT=true
PWD=/
I think it is safe to assume this applies to other services started by systemd
as well.
> And if it is not set / seems like a reasonable default.
In Shell it would be "" but with >>resolveString: '' it seems to be / but that
seems to be fair enough. E.g. as {home} / '.config' is used anyway.
holger