1
0
forked from rpms/rpcbind

Make sure rpcbind.socket gets enabled

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2015-03-19 13:57:20 -04:00
parent ab9778ed33
commit bc8728cbf5

View File

@ -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@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@redhat.com> - 0.2.2-2.1
- Added xlogging debugging to rpcbind