Unable to open "/var/run/tor/tor.pid" for writing: No such file or directory The openrc script uses checkpath -d -m 0755 -o tor:tor /var/run/tor For systemd, we should provide a config file in tmpfiles.d % cat /etc/tmpfiles.d/tor.conf #Type Path Mode UID GID Age Argument d /var/run/tor 0775 tor tor - - net-misc/tor-0.2.5.4_alpha was built with the following: USE="ecc threads -bufferevents -nat-pmp (-selinux) -stats -test -tor-hardening -transparent-proxy -upnp -web"
/var/run should not longer be used in favour of /run.
(In reply to poncho from comment #0) > Unable to open "/var/run/tor/tor.pid" for writing: No such file or directory > > The openrc script uses > checkpath -d -m 0755 -o tor:tor /var/run/tor > > For systemd, we should provide a config file in tmpfiles.d > % cat /etc/tmpfiles.d/tor.conf > #Type Path Mode UID GID Age Argument > d /var/run/tor 0775 tor tor - - > > net-misc/tor-0.2.5.4_alpha was built with the following: > USE="ecc threads -bufferevents -nat-pmp (-selinux) -stats -test > -tor-hardening -transparent-proxy -upnp -web" I'm not a systemd user, so maybe the systemd folks can suggest a patch here.
(In reply to Jeroen Roovers from comment #1) > /var/run should not longer be used in favour of /run. that's true only for Linux -only packages, such as mdadm for example, /var/run is still preferred (the portable path)
the file should go into /usr/lib/tmpfiles.d/tor.conf, not /etc, otherwise the file suggested in Comment #0 is ok (the /etc one is for user-defined overriding of the one from /usr/lib, and thus, out of scope for the PM installed files)
Okay its in with tor-0.2.5.4_alpha-r1. Please test and reopen if this is still an issue.
(In reply to Samuli Suominen from comment #4) > the file should go into /usr/lib/tmpfiles.d/tor.conf, not /etc, otherwise > the file suggested in Comment #0 is ok > > (the /etc one is for user-defined overriding of the one from /usr/lib, and > thus, out of scope for the PM installed files) I used systemd_dotmpfilesd.