defect 3213: sync the fix that moving pid location from /tmp/xcat to /var/run/xcat to xCATsn.spec

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14537 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-12-04 09:21:47 +00:00
parent 2732e1f90d
commit a1e9904375

View File

@ -93,6 +93,17 @@ fi
%endif
%post
# create dir for the current pid and move the original ones from /tmp/xcat to /var/run/xcat
mkdir -p /var/run/xcat
if [ -r "/tmp/xcat/installservice.pid" ]; then
mv /tmp/xcat/installservice.pid /var/run/xcat/installservice.pid
fi
if [ -r "/tmp/xcat/udpservice.pid" ]; then
mv /tmp/xcat/udpservice.pid /var/run/xcat/udpservice.pid
fi
if [ -r "/tmp/xcat/mainservice.pid" ]; then
mv /tmp/xcat/mainservice.pid /var/run/xcat/mainservice.pid
fi
if [ "$1" = "1" ]; then #Only if installing for the first time..