[rpcbind] Make sure rpcbind.socket gets enabled
Steve Dickson
steved at fedoraproject.org
Thu Mar 19 17:58:14 UTC 2015
commit bc8728cbf5b0f4033449d7e330df24563e78b2b1
Author: Steve Dickson <steved at redhat.com>
Date: Thu Mar 19 13:57:20 2015 -0400
Make sure rpcbind.socket gets enabled
Signed-off-by: Steve Dickson <steved at redhat.com>
rpcbind.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/rpcbind.spec b/rpcbind.spec
index e0051c4..e4ac13e 100644
--- a/rpcbind.spec
+++ b/rpcbind.spec
@@ -96,6 +96,10 @@ if [ -z "$rpcid" -o "$rpcid" != "32" ]; then
fi
%post
+if [ $1 -eq 1 ] ; then
+ # Initial installation
+ /bin/systemctl enable rpcbind.socket
+fi
%systemd_post rpcbind.service rpcbind.socket
%preun
@@ -115,6 +119,9 @@ fi
/sbin/chkconfig --del rpcbind >/dev/null 2>&1 || :
/bin/systemctl try-restart rpcbind.service >/dev/null 2>&1 || :
+%triggerun -- rpcbind > 0.2.2-2.0
+/bin/systemctl enable rpcbind.socket
+
%files
%defattr(-,root,root)
%config(noreplace) /etc/sysconfig/rpcbind
@@ -131,6 +138,7 @@ fi
* Thu Mar 19 2015 Steve Dickson <steved at redhat.com> - 0.2.2-2.2
- Changed RPCBDIR to be /var/run so bindings are perserved
during upgrades but not reboots.
+- Make sure rpcbind.socket gets enabled
* Thu Feb 5 2015 Steve Dickson <steved at redhat.com> - 0.2.2-2.1
- Added xlogging debugging to rpcbind
More information about the scm-commits
mailing list