From 13cd4bff41fa78eac84b5dfa954b59247a716f8d Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 10 Oct 2012 06:48:45 +0000 Subject: [PATCH] use update-rc.d to setup xcatd service in post install procedure git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/debian/postinst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/debian/postinst b/xCAT-server/debian/postinst index 1c14637a0..dc7e898c2 100644 --- a/xCAT-server/debian/postinst +++ b/xCAT-server/debian/postinst @@ -22,7 +22,11 @@ case "$1" in configure) . /etc/profile.d/xcat.sh xcatconfig -i -d - update-rc.d xcatd enable + if [ ! -e "/etc/rc0.d/K60xcatd" ];then + update-rc.d xcatd start 85 3 4 5 . stop 60 0 1 2 6 . + else + update-rc.d xcatd enable + fi 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