From 1dd5758ff71bc6fe61c4378cf95403c5bff1dc06 Mon Sep 17 00:00:00 2001 From: mellor Date: Wed, 3 Jul 2013 15:31:59 +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/branches/2.8@16872 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 +