![](https://seccdn.libravatar.org/avatar/482b6c0369f4709de8faa6843cd6b347.jpg?s=120&d=mm&r=g)
On samedi, 24 septembre 2016 09.58:12 h CEST Sebastian wrote:
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 th_integration_of_systemd_compared_to_SysVinit
And better if you package it make that droplet in /usr/lib/tempfiles.d Making administrator able to overrides your defaults by their on specific systems. ;-) -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org