From 0f89429d60d73c5f3355a91b4e549aed1c672b0a Mon Sep 17 00:00:00 2001 From: Chris Dunlap Date: Wed, 20 Mar 2013 16:09:25 -0700 Subject: [PATCH] add %ghost to rpm spec %files /var/run/munge dir Add the %ghost directive to the /var/run/munge directory in the rpm spec %files list. It has become increasingly common for /var/run to be mounted as tmpfs. As such, the /var/run/munge directory is created in the init script when the service is started. --- munge.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/munge.spec b/munge.spec index 541e4c0d..e038b0c9 100644 --- a/munge.spec +++ b/munge.spec @@ -194,7 +194,7 @@ if [ -x /sbin/ldconfig ]; then /sbin/ldconfig %{_libdir}; fi %config(noreplace) %{_sysconfdir}/*/* %dir %attr(0711,munge,munge) %{_localstatedir}/lib/munge %dir %attr(0700,munge,munge) %{_localstatedir}/log/munge -%dir %attr(0755,munge,munge) %{_localstatedir}/run/munge +%dir %attr(0755,munge,munge) %ghost %{_localstatedir}/run/munge %{_bindir}/* %{_sbindir}/* %{_mandir}/*[^3]/*