From 7d74eceee69f811385467a3ad3a1966c851b0c03 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 17 Dec 2009 12:04:16 +0000 Subject: [PATCH] 2009-12-17 Miguel de Dios * linux/DEBIAN/postinst: change the code to insert as service the agent. Fixes: 2911327 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2211 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 5 +++++ pandora_agents/linux/DEBIAN/postinst | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index 2175199677..a07fa9c049 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,8 @@ +2009-12-17 Miguel de Dios + + * linux/DEBIAN/postinst: change the code to insert as service the agent. + Fixes: 2911327 + 2009-12-16 Raul Mateos * linux/pandora_agent, linux/DEBIAN/make_deb_package.sh: Preparing diff --git a/pandora_agents/linux/DEBIAN/postinst b/pandora_agents/linux/DEBIAN/postinst index 4ebc85059e..f8393612af 100755 --- a/pandora_agents/linux/DEBIAN/postinst +++ b/pandora_agents/linux/DEBIAN/postinst @@ -29,8 +29,7 @@ chmod 640 $PANDORA_LOG chgrp root $PANDORA_LOG chown -R root:root $PANDORA_BIN -INITLV=`cat /etc/inittab | grep "[0-9]\:initdefault" | cut -f 2 -d ":"` echo "Linking start-up daemon script to /etc/rc$INITLV.d"; -ln -s /etc/init.d/pandora_agent_daemon /etc/rc$INITLV.d/S90pandora_agent +update-rc.d pandora_agent_daemon defaults echo "Please, now setup the $PANDORA_HOME/pandora_agent.conf and before start the /etc/init.d/pandora_agent_daemon"