From 9800265c1270bccd348b976d33aaddd7af9e89f0 Mon Sep 17 00:00:00 2001
From: xq2005 <qxuqxu@cn.ibm.com>
Date: Fri, 2 Aug 2013 01:46:26 -0700
Subject: [PATCH] start the xcatd on ubuntu/debian when system booting

---
 xCAT-server/debian/postinst | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/xCAT-server/debian/postinst b/xCAT-server/debian/postinst
index 270fee7cd..cd90919c0 100644
--- a/xCAT-server/debian/postinst
+++ b/xCAT-server/debian/postinst
@@ -21,12 +21,7 @@ set -e
 case "$1" in
     configure)
 	. /etc/profile.d/xcat.sh
-    if [ ! -e "/etc/rc0.d/K60xcatd" ];then
-        update-rc.d xcatd start 85 2 3 4 5 . stop 60 0 1 6 .
-        update-rc.d xcatd enable 2
-    else
-	    update-rc.d xcatd enable
-    fi
+        update-rc.d xcatd defaults
 	if [ -f /tmp/xCAT-server_upgrade.tmp ]; then
 	    if [ -f "/proc/cmdline" ]; then   # prevent running it during install into chroot image
 		/etc/init.d/xcatd reload