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/branches/2.8@16872 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mellor 2013-07-03 15:31:59 +00:00
parent 05778c7853
commit 1dd5758ff7

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