This isn't a perfect fix since if the EPREFIX path contains characters that need
to be quoted the paths will still fail, however when compared to a systemd
unit that doesn't work at all this is significantly better than nothing.
Bug: http://bugs.gentoo.org/645200
Package-Manager: Portage-2.3.19, Repoman-2.3.6
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
[Service]
Type=simple
User=foldingathome
-WorkingDirectory="${EPREFIX}/opt/foldingathome"
+WorkingDirectory=${EPREFIX}/opt/foldingathome
PIDFile=/run/fahclient.pid
-ExecStart=./FAHClient -v start
-ExecReload=./FAHClient -v restart
-ExecStop=./FAHClient -v stop
+ExecStart=${EPREFIX}/opt/foldingathome/FAHClient -v start
+ExecReload=${EPREFIX}/opt/foldingathome/FAHClient -v restart
+ExecStop=${EPREFIX}/opt/foldingathome/FAHClient -v stop
KillMode=process
[Install]