2014-05-26 Sancho Lerena <slerena@artica.es>

* pandora_agent_installer: Fixed installed for Darwin/macOS agent. Tested
        on 10.9.2.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10009 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2014-05-26 14:59:54 +00:00
parent 0caf3566b3
commit 3bd49b8e63
2 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-05-26 Sancho Lerena <slerena@artica.es>
* pandora_agent_installer: Fixed installed for Darwin/macOS agent. Tested
on 10.9.2.
2014-04-30 Sancho Lerena <slerena@artica.es>
* DEBIAN/postinst,

View File

@ -111,6 +111,14 @@ help () {
uninstall () {
OS_NAME=`uname -s`
if [ "$OS_NAME" = "Darwin" ]
then
launchctl remove com.pandorafms.pandorafms
rm /Library/LaunchDaemons/com.pandorafms.pandorafms.plist 2> /dev/null
fi
if [ "$OS_NAME" = "FreeBSD" ]
then
PANDORA_HOME=/usr/local/share/pandora_agent
@ -468,6 +476,14 @@ install () {
echo "Linking start-up daemon script 'pandora_agent_daemon' on $OS_NAME";
fi
if [ "$OS_NAME" = "Darwin" ]
then
# Specific service install on Darwin/macOSX
launchctl load -F Darwin/com.pandorafms.pandorafms.plist
echo "Start Pandora FMS service with 'launchctl start com.pandorafms.pandorafms'"
echo "This service has been scheduled to launch on each system startup"
fi
if [ "$OS_NAME" = "AIX" ]
then
cp pandora_agent_daemon /etc/rc.pandora_agent_daemon