On 15.03.2012 03:01, Russell Coker wrote: > I think it would be good to have a shell script that will create a directory > under /run and do whatever else is necessary. So the package maintainer > doesn't need to care about what really happens, they just have a line like the > following: .. > What do you think? Tollef and myself think, that it would be a good idea to adopt the tmpfiles.d  idea, that originated in systemd but could be implemented independent of it. Packages, which needs such volatile or temporary files/directories, just need to install a very simple tmpfiles.d snippet. We even have sysv init scripts which do nothing else but creating a runtime directory and could be replaced complete by this new mechanism. The tool to process those tmpfiles will make sure to do all the necessary sanity checks and also run restorecon when selinux is in use. E.g. systemd-tmpfiles , the tool in systemd to handle tmpfiles, already handles selinux correctly. In your case the file could look as simple as xend.conf: ========= # Type Path Mode UID GID Age Argument d /var/run/xenstored 0700 root root - - Cheers, Michael  http://0pointer.de/public/systemd-man/tmpfiles.d.html  http://0pointer.de/public/systemd-man/systemd-tmpfiles.html -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Description: OpenPGP digital signature