From e869f87935ee14d54a8bb0a65ea0a09b564bfb47 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 4 Dec 2012 09:22:48 +0000 Subject: [PATCH] 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/trunk@14538 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCATsn/xCATsn.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index 47a1f6286..43973cb7d 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -110,6 +110,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..