From fb0ad21c3f42f4e8f15a23c91ec04f3b6c86f109 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 29 Nov 2012 06:35:36 +0000 Subject: [PATCH] /var/run is a symlink on /run and that's just a tmpfs, create this directory when xcatd starting git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/etc/init.d/xcatd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/etc/init.d/xcatd b/xCAT-server/etc/init.d/xcatd index 9c607a63b..7f69e19e1 100755 --- a/xCAT-server/etc/init.d/xcatd +++ b/xCAT-server/etc/init.d/xcatd @@ -136,6 +136,11 @@ start) exit fi echo -n "Starting xCATd " + #/var/run/ is a symlink on /run and that's just a tmpfs mount created on boot on ubuntu. + #if there is not this directory, create first + if [ ! -d /var/run/xcat ];then + mkdir -p /var/run/xcat + fi #xcatroot=`head -n1 /etc/profile.d/xcat.sh` #export $xcatroot # When this script is invoked via the service cmd on RH, it doesn't have PATH