From 96b39feeb00af8dedc600d2c09c95168efc3286b Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 16 Oct 2009 15:06:58 +0000 Subject: [PATCH] 2009-10-17 Sancho Lerena * linux/pandora_agent_daemon: Fixed problems in small term with PID detection. * unix/Linux/pandora_agent_daemon: Same as above. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2030 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 7 +++++++ pandora_agents/linux/pandora_agent_daemon | 1 + pandora_agents/unix/Linux/pandora_agent_daemon | 1 + 3 files changed, 9 insertions(+) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index a88f98f82b..e3929ac80e 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,10 @@ +2009-10-17 Sancho Lerena + + * linux/pandora_agent_daemon: Fixed problems in small term with + PID detection. + + * unix/Linux/pandora_agent_daemon: Same as above. + 2009-09-30 Sancho Lerena * win32/installer/pandora.mpi: Updated installer. diff --git a/pandora_agents/linux/pandora_agent_daemon b/pandora_agents/linux/pandora_agent_daemon index 88141b4ee3..454e402d11 100755 --- a/pandora_agents/linux/pandora_agent_daemon +++ b/pandora_agents/linux/pandora_agent_daemon @@ -24,6 +24,7 @@ LOGFILE=/var/log/pandora_agent.log # This function replace pidof, not working in the same way in different linux distros function pidof_pandora () ( + COLUMNS=250 PANDORA_PID=`ps aux | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'` echo $PANDORA_PID ) diff --git a/pandora_agents/unix/Linux/pandora_agent_daemon b/pandora_agents/unix/Linux/pandora_agent_daemon index 88141b4ee3..454e402d11 100755 --- a/pandora_agents/unix/Linux/pandora_agent_daemon +++ b/pandora_agents/unix/Linux/pandora_agent_daemon @@ -24,6 +24,7 @@ LOGFILE=/var/log/pandora_agent.log # This function replace pidof, not working in the same way in different linux distros function pidof_pandora () ( + COLUMNS=250 PANDORA_PID=`ps aux | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'` echo $PANDORA_PID )