mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2007-01-05 Sancho Lerena <slerena@artica.es>
* linux/pandora_agent_daemon: Some adjustements for a generic daemon launcher. Need to be improved with some code from Dagget and Manu. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@354 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7ff97a2c66
commit
4574ed56a2
@ -1,3 +1,9 @@
|
|||||||
|
2007-01-05 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* linux/pandora_agent_daemon: Some adjustements for a generic
|
||||||
|
daemon launcher. Need to be improved with some code from Dagget
|
||||||
|
and Manu.
|
||||||
|
|
||||||
2007-01-04 Sancho Lerena <slerena@artica.es>
|
2007-01-04 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* Linux/pandora_agent.sh: Solved problem with encoding. Now XML
|
* Linux/pandora_agent.sh: Solved problem with encoding. Now XML
|
||||||
|
@ -16,14 +16,14 @@
|
|||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
|
||||||
PANDORA_PATH=/opt/pandora_agent/
|
PANDORA_PATH=/etc/pandora
|
||||||
DAEMON=pandora_agent.sh
|
DAEMON=/usr/bin/pandora_agent
|
||||||
PIDFILE=/var/run/pandora_agent.pid
|
PIDFILE=/var/run/pandora_agent.pid
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f $PANDORA_PATH/$DAEMON ]
|
if [ ! -f $DAEMON ]
|
||||||
then
|
then
|
||||||
echo "Pandora Agent not found at $PANDORA_PATH/$DAEMON, please check setup"
|
echo "Pandora Agent not found at $DAEMON, please check setup"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ case "$1" in
|
|||||||
echo "Pandora Agent is currently running on this machine. Aborting now..."
|
echo "Pandora Agent is currently running on this machine. Aborting now..."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
$PANDORA_PATH/$DAEMON $PANDORA_PATH >> $PANDORA_PATH/pandora.log & MYPID=$!
|
$DAEMON $PANDORA_PATH >> $PANDORA_PATH/pandora.log & MYPID=$!
|
||||||
echo $MYPID > $PIDFILE
|
echo $MYPID > $PIDFILE
|
||||||
echo "Pandora Agent is now running with PID $MYPID"
|
echo "Pandora Agent is now running with PID $MYPID"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user