[nfs-utils/f17] Reworked what services get restarted

Steve Dickson steved at fedoraproject.org
Thu Jun 14 14:41:50 UTC 2012


commit 7c89593e92f663f542580839c399a488298cfaab
Author: Steve Dickson <steved at redhat.com>
Date:   Thu Jun 14 10:39:28 2012 -0400

    Reworked what services get restarted
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

 nfs-utils.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/nfs-utils.spec b/nfs-utils.spec
index 9692585..722e10d 100644
--- a/nfs-utils.spec
+++ b/nfs-utils.spec
@@ -22,6 +22,10 @@ Source17: nfs-mountd.service
 Source18: nfs-idmap.service
 Source19: nfs.target
 %define nfs_services %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19}
+# 
+# Services that need to be restarted.
+#
+%define nfs_start_services %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE18} 
 
 Source20: var-lib-nfs-rpc_pipefs.mount
 Source21: proc-fs-nfsd.mount
@@ -213,7 +217,7 @@ chown -R rpcuser:rpcuser /var/lib/nfs/statd
 %preun
 if [ $1 -eq 0 ]; then
 	# Package removal, not upgrade
-	for service in %(sed 's!\S*/!!g' <<< '%{nfs_services}') ; do
+	for service in %(sed 's!\S*/!!g' <<< '%{nfs_start_services}') ; do
     	/bin/systemctl disable $service >/dev/null 2>&1 || :
     	/bin/systemctl stop $service >/dev/null 2>&1 || :
 	done
@@ -228,7 +232,7 @@ fi
 %postun
 if [ $1 -ge 1 ]; then
 	# Package upgrade, not uninstall
-	for service in %(sed 's!\S*/!!g' <<< '%{nfs_services}') ; do
+	for service in %(sed 's!\S*/!!g' <<< '%{nfs_start_services}') ; do
     	/bin/systemctl try-restart $service >/dev/null 2>&1 || :
 	done
 fi
@@ -296,6 +300,7 @@ fi
 %changelog
 * Tue Jun 12 2012 Steve Dickson <steved at redhat.com> 1.2.6-2
 - Enable legacy service names (bz 832100).
+- Reworked what services get restarted.
 
 * Tue May 29 2012 Steve Dickson <steved at redhat.com> 1.2.6-1
 - Updated to latest upstream RC release: nfs-utils.1.2.7-rc1 (bz 595420)


More information about the scm-commits mailing list