[systemd-devel] script assigned via Unit's ExecStartPre= only partially executes, fails to complete ?

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Dec 1 07:25:28 PST 2013


On Sun, Dec 01, 2013 at 12:10:36AM -0800, jen142 at promessage.com wrote:
> I'm using an openvpn unit,
> 
> 	cat openvpn.service
> 		[Unit]
> 		Description=OpenVPN
> 		After=syslog.target network.target
> 		Before=openvpn.target
> 
> 		[Service]
> 		PrivateTmp=true
> 		Environment=PATH="/usr/local/openvpn-unpriv:$PATH"
This is not a shell, and you cannot reference $PATH like this. Full
content of the variable has to included instead.

Zbyszek


More information about the systemd-devel mailing list