2011-01-27 Junichi Satoh <junichi@rworks.jp>
* unix/pandora_agent_daemon: Changed order of 'su' argument. Username should be as the 1st argument on Solaris. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3781 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f39d91210e
commit
a6c7692c67
|
@ -1,3 +1,8 @@
|
|||
2011-01-27 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* unix/pandora_agent_daemon: Changed order of 'su' argument.
|
||||
Username should be as the 1st argument on Solaris.
|
||||
|
||||
2011-01-26 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* android
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2011-01-27 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* pandora_agent_daemon: Changed order of 'su' argument.
|
||||
Username should be as the 1st argument on Solaris.
|
||||
|
||||
2010-12-28 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* pandora_agent.spec: Added a release variable as in the rest of the
|
||||
|
|
|
@ -74,7 +74,7 @@ case "$1" in
|
|||
echo "Cannot launch again. Aborting."
|
||||
exit 1
|
||||
fi
|
||||
su -c "PATH=$PATH nohup $DAEMON $PANDORA_PATH >/dev/null 2>$LOGFILE &" $PANDORA_USER
|
||||
su $PANDORA_USER -c "PATH=$PATH nohup $DAEMON $PANDORA_PATH >/dev/null 2>$LOGFILE &"
|
||||
sleep 2
|
||||
PANDORA_PID=`pidof_pandora`
|
||||
echo "Pandora FMS Agent is now running with PID $PANDORA_PID"
|
||||
|
@ -88,7 +88,7 @@ case "$1" in
|
|||
exit 1
|
||||
else
|
||||
echo "Stopping Pandora Agent."
|
||||
su -c "kill -9 $PANDORA_PID >/dev/null 2>&1" $PANDORA_USER
|
||||
su $PANDORA_USER -c "kill -9 $PANDORA_PID >/dev/null 2>&1"
|
||||
fi
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue