Am 23.10.2013 19:22, schrieb Sandro Mani:
> 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

dovecot is using this in %post on my systems

%post
%{_bindir}/systemctl --system daemon-reload 2> /dev/null > /dev/null
install -d -m 0755 -g %{name} -d /run/%{name}
install -d -m 0755 -d /run/%{name}/empty
install -d -m 0750 -g dovenull /run/%{name}/login
%{_sbindir}/ldconfig
exit 0

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to