Hi, On 09/23/2016 09:26 PM, Yamaban wrote:
AFAIK, you can create the needed dirs with the needed (user writeable) permissions by dropping a snippet in /etc/tmpdirs.d/ (for files use /etc/tmpfiles.d/) and they will be created after boot by systemd-tmpfiles-setup.service.
Docu: man:tmpfiles.d(5) man:systemd-tmpfiles(8)
This /could/ be what you want (use /run/name/blah.pid) without forceing extra tricks. Yes, this seems to be very good!
But I found out that /etc/tmpdirs.d has been obsoleted by /etc/tmpfiles.d[1] The tmpdirs.d directory exists on tumbleweed (at least here, may be not a fresh install) but is not read anymore by systemd-tmpfiles. This caused me some headache to find out. Also, the filename has to end with .conf, this is not mentioned on older blog posts (e.g. from 2010)
Otherwise using /var/lib/name/blah.pid would also be a valid, traceable, accountable, and comprehensible solution. Okay, I will use this on other/older platforms where the above method is not available.
Thanks for your advice! Sebastian [1]: https://en.opensuse.org/openSUSE:Systemd_status#Short_list_of_differences_wi... -- python programming - mail server - photo - video - https://sebix.at cryptographic key at https://sebix.at/DC9B463B.asc and on public keyservers