From bc8728cbf5b0f4033449d7e330df24563e78b2b1 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 19 Mar 2015 13:57:20 -0400 Subject: [PATCH] Make sure rpcbind.socket gets enabled Signed-off-by: Steve Dickson --- 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 - 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 - 0.2.2-2.1 - Added xlogging debugging to rpcbind