From ce8246636ebd348d1f663b5491c9b60ca6829c5d Mon Sep 17 00:00:00 2001 From: slerena Date: Tue, 29 Dec 2009 11:07:59 +0000 Subject: [PATCH] 2009-12-29 Sancho Lerena * linux/pandora_agent_daemon: Some ugly warnings are fixed. * linux/pandora_agent.spec: /spool../data_out was not correctly working, fixed. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 7 +++++++ pandora_agents/linux/pandora_agent.spec | 5 +++++ pandora_agents/linux/pandora_agent_daemon | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index 37d3a10f5c..2443ab9541 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,10 @@ +2009-12-29 Sancho Lerena + + * linux/pandora_agent_daemon: Some ugly warnings are fixed. + + * linux/pandora_agent.spec: /spool../data_out was not correctly + working, fixed. + 2009-12-28 Sancho Lerena * pandora_agent.spec: Fixed missing var/spool/pandora/data_out diff --git a/pandora_agents/linux/pandora_agent.spec b/pandora_agents/linux/pandora_agent.spec index 60b8865913..71502a88ea 100755 --- a/pandora_agents/linux/pandora_agent.spec +++ b/pandora_agents/linux/pandora_agent.spec @@ -87,6 +87,11 @@ if [ ! -e /etc/pandora/pandora_agent.conf ]; then ln -s /usr/share/pandora_agent/pandora_agent.conf /etc/pandora/pandora_agent.conf fi +# Create default temp dir for agent. If not exist, agent will not work ! +if [ ! -d /var/spool/pandora/data_out ] ; then + mkdir -p /var/spool/pandora/data_out +fi + chkconfig -s pandora_agent_daemon on %preun diff --git a/pandora_agents/linux/pandora_agent_daemon b/pandora_agents/linux/pandora_agent_daemon index 2e7651e50e..dc99b62efd 100755 --- a/pandora_agents/linux/pandora_agent_daemon +++ b/pandora_agents/linux/pandora_agent_daemon @@ -11,7 +11,7 @@ # Provides: pandora_agent # Required-Start: $network # Required-Stop: $network -# Default-Start: S 2 3 4 5 +# Default-Start: 2 3 5 # Default-Stop: 0 1 6 # Short-Description: Startup script daemon for Pandora FMS agent ### END INIT INFO