From 425a715d3cfe7f259654530ce264d80f571eba3a Mon Sep 17 00:00:00 2001 From: mellor Date: Wed, 3 Jul 2013 15:31:10 +0000 Subject: [PATCH] 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 --- xCAT-OpenStack/xCAT-OpenStack.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-OpenStack/xCAT-OpenStack.spec b/xCAT-OpenStack/xCAT-OpenStack.spec index 62c585fd0..55e492145 100644 --- a/xCAT-OpenStack/xCAT-OpenStack.spec +++ b/xCAT-OpenStack/xCAT-OpenStack.spec @@ -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 +