add the -q never option while executing smartd command in smartd.service
This commit is contained in:
parent
2e39e3c5e8
commit
8edaf251ff
@ -1,12 +1,13 @@
|
|||||||
Name: smartmontools
|
Name: smartmontools
|
||||||
Version: 6.6
|
Version: 6.6
|
||||||
Release: 7
|
Release: 8
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: S.M.A.R.T. utility toolset
|
Summary: S.M.A.R.T. utility toolset
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://smartmontools.sourceforge.net/
|
URL: http://smartmontools.sourceforge.net/
|
||||||
|
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
Source1: smartmontools.sysconf
|
||||||
|
|
||||||
Patch6000: 6000-os_linux.cpp-os_netbsd.cpp-fix-crash-on-scan-if-WITH.patch
|
Patch6000: 6000-os_linux.cpp-os_netbsd.cpp-fix-crash-on-scan-if-WITH.patch
|
||||||
Patch6001: 6001-ataprint.cpp-Fix-detection-of-Device-Statistics-log-.patch
|
Patch6001: 6001-ataprint.cpp-Fix-detection-of-Device-Statistics-log-.patch
|
||||||
@ -56,11 +57,12 @@ autoreconf -i
|
|||||||
%configure --with-selinux --with-libcap-ng=yes --with-systemdsystemunitdir=%{_unitdir} --sysconfdir=%{_sysconfdir}/%{name}/
|
%configure --with-selinux --with-libcap-ng=yes --with-systemdsystemunitdir=%{_unitdir} --sysconfdir=%{_sysconfdir}/%{name}/
|
||||||
make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now"
|
||||||
|
|
||||||
|
sed -i 's|/etc/smartmontools/sysconfig|/etc/sysconfig|g' smartd.service
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/smartmontools
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/smartd_warning.d
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/smartd_warning.d
|
||||||
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
||||||
|
|
||||||
@ -79,6 +81,7 @@ mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
|||||||
%dir %{_sysconfdir}/%{name}/smartd_warning.d
|
%dir %{_sysconfdir}/%{name}/smartd_warning.d
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/smartd.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/smartd.conf
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/smartd_warning.sh
|
%config(noreplace) %{_sysconfdir}/%{name}/smartd_warning.sh
|
||||||
|
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
||||||
%{_unitdir}/smartd.service
|
%{_unitdir}/smartd.service
|
||||||
%{_sbindir}/{smartd,update-smart-drivedb,smartctl}
|
%{_sbindir}/{smartd,update-smart-drivedb,smartctl}
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
@ -90,6 +93,12 @@ mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:6.6-8
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add the "-q never" option while executing smartd command in smartd.service
|
||||||
|
|
||||||
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:6.6-7
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:6.6-7
|
||||||
- Type:enhancemnet
|
- Type:enhancemnet
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
3
smartmontools.sysconf
Normal file
3
smartmontools.sysconf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# options for smartd
|
||||||
|
# Add -q never for never quit otherwise the smartd.service may failed while no devices to scan
|
||||||
|
smartd_opts="-q never"
|
||||||
Loading…
x
Reference in New Issue
Block a user