[systemd-devel] WorkingDirectory in service file
list at eworm.de
Wed Nov 23 12:07:31 PST 2011
Christian Hesse <list at eworm.de> on Tue, 22 Nov 2011 14:44:01 +0100:
> Looks like WorkingDirectory is ignored and the real working directory
> is / as I have to call scripts within the configuration with absolute
> paths. pwd run inside a script gives "/".
> Everything works as expected (with relative paths) when launching
> openvpn from /etc/openvpn manually. Any hints what goes wrong?
Ok, solved this...
systemd works as expected but openvpn does a chdir("/") when forking to
background. In respect to daemon(3) this seems to be the expected
More information about the systemd-devel