From 075b9e56234f45249c1d77855e610a5f9595290b Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Nov 11 2016 16:33:37 +0000 Subject: enable location for persistence data(#1291928) --- diff --git a/smartmontools.spec b/smartmontools.spec index c03607a..f5f411b 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -1,7 +1,7 @@ Summary: Tools for monitoring SMART capable hard disks Name: smartmontools Version: 6.5 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Group: System Environment/Base License: GPLv2+ @@ -65,6 +65,7 @@ install -D -p -m 755 %{SOURCE4} $RPM_BUILD_ROOT/%{_libexecdir}/%{name}/smartdnot mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/smartd_warning.d rm -rf $RPM_BUILD_ROOT/etc/{rc.d,init.d} rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name} +mkdir -p $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name} %clean rm -rf $RPM_BUILD_ROOT @@ -106,8 +107,12 @@ fi %{_mandir}/man?/update-smart*.* %{_libexecdir}/%{name} %{_datadir}/%{name} +%{_sharedstatedir}/%{name} %changelog +* Fri Nov 11 2016 Michal Hlavinka - 1:6.5-2 +- enable location for persistence data(#1291928) + * Mon May 09 2016 Michal Hlavinka - 1:6.5-1 - smartmontools updated to 6.5 diff --git a/smartmontools.sysconf b/smartmontools.sysconf index 75d591c..7d57029 100644 --- a/smartmontools.sysconf +++ b/smartmontools.sysconf @@ -1,4 +1,6 @@ # command line options for smartd +# Add -s /var/lib/smartmontools to enable state persistence smartd_opts="-q never" + # autogenerated config file options # smartd_conf_opts="-H -m root"