[CentOS] java-1.6.0-openjdk.x86_64 keeps clobbering logging.properties

Mon Feb 21 22:05:10 UTC 2011
Benjamin Franz <jfranz at freerun.com>

On 02/21/2011 07:27 AM, Jason Pyeron wrote:
> It appears that the rpm does not list the logging.properties as a config file,
> as such every time yum updates the file get overwritten.
>
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/logging.properties
>
> For now I have a cron job to replace it.
>
> Any suggestions?

Try making the file immutable.

chattr +i 
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/logging.properties

Just remember to remove the immutable flag when you want to edit it.

-- 
Benjamin Franz