Best practices for packaging logfiles

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

 



I noticed a package in the review queue doing this to manage its
logfile:

%post
/sbin/chkconfig --add %{name}
touch %{_localstatedir}/log/%{name}
chown sip:sip %{_localstatedir}/log/%{name}

%files
[...]
%ghost %attr(0644,sip,sip) %{_localstatedir}/log/%{name}

(the sip user/group are created in %pre).

I was unsure of the difference between this and simply owning the file
in %files; the ownership comes out right, but behavior might differ on
upgrades and there's the issue of rpm -V.  Does %ghost imply something
like %verify(not md5 size mtime)?

That's the best current practice for doing this?

 - J<

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux