[smartmontools: 1/2] enable smartd after installation

Michal Hlavinka mhlavink at fedoraproject.org
Fri Dec 2 14:48:29 UTC 2011


commit dcd3e973196ab7c5e7c7d632ca8a87b55e2954f9
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Fri Dec 2 12:53:41 2011 +0100

    enable smartd after installation

 smartmontools.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/smartmontools.spec b/smartmontools.spec
index 4da47d3..dd18ddb 100644
--- a/smartmontools.spec
+++ b/smartmontools.spec
@@ -1,7 +1,7 @@
 Summary:	Tools for monitoring SMART capable hard disks
 Name:		smartmontools
 Version:	5.41
-Release:	2%{?dist}
+Release:	3%{?dist}
 Epoch:		1
 Group:		System Environment/Base
 License:	GPLv2+
@@ -84,6 +84,7 @@ fi
 %post
 if [ $1 -eq 1 ]; then
 	/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+	/bin/systemctl enable smartd.service >/dev/null 2>&1 || :
 else
 	if [ -n "$(find /etc/rc.d/rc5.d/ -name 'S??smartd' 2>/dev/null)" ]; then
 		/bin/systemctl enable smartd.service >/dev/null 2>&1 || :
@@ -112,6 +113,9 @@ fi
 %{_datadir}/%{name}
 
 %changelog
+* Fri Dec 02 2011 Michal Hlavinka <mhlavink at redhat.com> - 1:5.41-3
+- enable smartd after installation
+
 * Mon Jun 13 2011 Michal Hlavinka <mhlavink at redhat.com> - 1:5.41-2
 - make F-14 (sysv init) -> F-15 (systemd) transition more robust
 


More information about the scm-commits mailing list