defect 3670 - add xcatd reload to post section for xCAT-OpenStack rpm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16871 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mellor 2013-07-03 15:31:10 +00:00
parent 0111c1e6c3
commit 425a715d3c

View File

@ -42,3 +42,13 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%post
%ifos linux
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
if [ -f $RPM_INSTALL_PREFIX0/sbin/xcatd ]; then
/etc/init.d/xcatd reload
fi
fi
%endif
exit 0