Re: systemd tmpfiles: ensuring directories exist after package installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 23, 2013 at 07:22:16PM +0200, Sandro Mani wrote:
> Hi,
> 
> In cases where a package ships a <service>.tmpfiles file which
> manages i.e. the /var/run/<service> directory, what is the best way
> |to ||||make sure that the directory exists after installing the
> package, without rebooting the system?
> - The directory should be installed by the package
> - %postinst||| should include systemd-tmpfiles --create
> |%{_tmpfilesdir}/%{name}.conf
> - ... ?

  The latte using handy %tmpfiles_create macro.
See http://cgit.freedesktop.org/systemd/systemd/tree/src/core/macros.systemd.in

-- 
Tomasz Torcz                 "God, root, what's the difference?"
xmpp: zdzichubg@xxxxxxxxx         "God is more forgiving."

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux