From 709fc270aec91b6c60f309c3c842e077c0b36880 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 14 Jan 2013 13:12:02 +0000 Subject: [PATCH] defect 3282: use the /var/run/xcatd.pid to store the main pid of xcat if no pidfile is specified with -p flag git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14873 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 11fa33df7..2c375d4d3 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -109,6 +109,9 @@ GetOptions( 'foreground|f' => \$foreground ); +unless ($pidfile) { + $pidfile = "/var/run/xcatd.pid"; +} #start syslog if it is not up if (xCAT::Utils->isLinux()) {