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
|
||||
Version: 6.6
|
||||
Release: 7
|
||||
Release: 8
|
||||
Epoch: 1
|
||||
Summary: S.M.A.R.T. utility toolset
|
||||
License: GPLv2+
|
||||
URL: http://smartmontools.sourceforge.net/
|
||||
|
||||
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
|
||||
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}/
|
||||
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
|
||||
%make_install
|
||||
|
||||
|
||||
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/smartmontools
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/smartd_warning.d
|
||||
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
||||
|
||||
@ -79,6 +81,7 @@ mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
||||
%dir %{_sysconfdir}/%{name}/smartd_warning.d
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/smartd.conf
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/smartd_warning.sh
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
|
||||
%{_unitdir}/smartd.service
|
||||
%{_sbindir}/{smartd,update-smart-drivedb,smartctl}
|
||||
%{_datadir}/%{name}
|
||||
@ -90,6 +93,12 @@ mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
||||
|
||||
|
||||
%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
|
||||
- Type:enhancemnet
|
||||
- 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