2009-11-04 Raul Mateos <raulofpandora@gmail.com>

* pandora_agent_daemon: Changed "Uso" string to "Usage" string. Unify headers
	and customized according to each UNIX/Linux versions.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2084 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
raulmateos 2009-11-04 18:30:18 +00:00
parent f999cc1564
commit 03166964b4
12 changed files with 64 additions and 50 deletions

View File

@ -1,3 +1,8 @@
2009-11-04 Raul Mateos <raulofpandora@gmail.com>
* pandora_agent_daemon: Changed "Uso" string to "Usage" string. Unify headers
and customized according to each UNIX/Linux versions.
2009-11-04 Miguel de Dios <miguel.dedios@artica.es>
* DEBIAN/make_deb_package.sh: move the script to make the deb package into
the DEBIAN and change some things into the sourcecode for the directory

View File

@ -1,8 +1,9 @@
#!/usr/bin/ksh
# Startup Script for Pandora Agent
# Sancho Lerena, <slerena@gmail.com>
# Version para AIX
# v1.3
# Pandora FMS AIX Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.3.1 Build 091104
# http://www.pandorafms.com
# DONT USE WITH OPENSSH
@ -55,7 +56,7 @@ case "$1" in
$0 start
;;
*)
echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
exit 1
esac

View File

@ -1,8 +1,11 @@
#!/bin/csh
# Script de arranque de Agente Pandora
# Sancho Lerena, <slerena@gmail.com>
# Version para IPSO/BSD (csh)
# version 1.1
# Pandora FMS IPSO/BSD, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# IPSO/BSD (csh)
# v1.2 Build 091104
# http://www.pandorafms.com
set PANDORA_PATH=/opt/pandora_agent
set DAEMON=pandora_agent.sh
@ -35,7 +38,7 @@ switch ($1)
$0 start
breaksw
default:
echo "Uso: ./pandora_agent {start|stop|restart|force-reload}"
echo "Usage: ./pandora_agent {start|stop|restart|force-reload}"
breaksw
endsw

View File

@ -1,8 +1,9 @@
#!/bin/sh
# Script de arranque de Agente Pandora
# Sancho Lerena, <slerena@gmail.com>
# Version para HPUX
# v1.1
# Pandora FMS HP-UX Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.2 Build 091104
# http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PANDORA_PATH=/usr/share/pandora_agent/
@ -42,7 +43,7 @@ case "$1" in
$0 start
;;
*)
echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
exit 1
esac

View File

@ -4,7 +4,7 @@
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# Linux Version (generic), for SuSe and Debian/Ubuntu.
# other Linux distros could not work properly without modifications
# v3.0 Build 090810
# v3.0.1 Build 091104
# http://www.pandorafms.com
### BEGIN INIT INFO
@ -80,7 +80,7 @@ case "$1" in
;;
*)
echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
exit 1
esac

View File

@ -1,8 +1,9 @@
#!/bin/sh
# Script de arranque de Agente Pandora
# Sancho Lerena, <slerena@gmail.com>
# Version para Linux (generico)
# v1.0.3
# Pandora FMS Generic Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# v1.0.4 Build 091104
# http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PANDORA_PATH=/usr/share/pandora_agent_sim
@ -36,7 +37,7 @@ case "$1" in
$0 start
;;
*)
echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
exit 1
esac

View File

@ -1,8 +1,10 @@
#!/bin/sh
# Init script for Pandora FMS agent
# Generic GNU/Linux version
# Sancho Lerena, <slerena@gmail.com>
# v1.3
# Pandora FMS openWRT Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# openWRT (Generic)
# v1.3.1 Build 091104
# http://www.pandorafms.com
### BEGIN INIT INFO
# Provides: pandora_agent
@ -60,7 +62,7 @@ case "$1" in
$0 start
;;
*)
echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|force-reload}"
echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|force-reload}"
exit 1
esac

View File

@ -1,8 +1,10 @@
#!/usr/bin/ksh
# Startup Script for Pandora Agent
# Sancho Lerena, <slerena@gmail.com>
# Version para Solaris
# v1.3
# Pandora FMS Solaris Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# Solaris Version (generic)
# v1.3.1 Build 091104
# http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
@ -47,7 +49,7 @@ case "$1" in
$0 start
;;
*)
echo "Uso: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
echo "Usage: /etc/init.d/pandora_agent {start|stop|restart|force-reload}"
exit 1
esac

View File

@ -1,9 +1,9 @@
#!/bin/sh
# Pandora FMS Linux Agent, startup script
# Pandora FMS AIX Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# AIX 5.x Version (generic),
# v3.0 Build 090810
# v3.0.1 Build 091104
# http://www.pandorafms.com
@ -12,7 +12,7 @@ PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log
# This function replace pidof, not working in the same way in different linux distros
# This function replace pidof, not working in the same way in different UNIX
function pidof_pandora {
PANDORA_PID=`ps -Alf | grep $DAEMON | grep -v grep | head -1 | awk '{ print $4 }'`
@ -70,7 +70,7 @@ case "$1" in
;;
*)
echo "Uso: /etc/rc.pandora_agent_daemon {start|stop|restart|status|force-reload}"
echo "Usage: /etc/rc.pandora_agent_daemon {start|stop|restart|status|force-reload}"
exit 1
esac

View File

@ -1,9 +1,9 @@
#!/bin/sh
# Pandora FMS Linux Agent, startup script
# Pandora FMS HP-UX Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# AIX 5.x Version (generic),
# v3.0 Build 090810
# HP-UX Version (generic)
# v3.0.1 Build 091104
# http://www.pandorafms.com
@ -12,7 +12,7 @@ PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log
# This function replace pidof, not working in the same way in different linux distros
# This function replace pidof, not working in the same way in different UNIX
function pidof_pandora {
PANDORA_PID=`ps -Af | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'`
@ -70,7 +70,7 @@ case "$1" in
;;
*)
echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
exit 1
esac

View File

@ -4,7 +4,7 @@
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# Linux Version (generic), for SuSe and Debian/Ubuntu.
# other Linux distros could not work properly without modifications
# v3.0 Build 090810
# v3.0.1 Build 091104
# http://www.pandorafms.com
### BEGIN INIT INFO
@ -21,7 +21,7 @@ PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log
# This function replace pidof, not working in the same way in different linux distros
# This function replace pidof, not working in the same way in different Linux distros
function pidof_pandora () (
COLUMNS=250
@ -80,7 +80,7 @@ case "$1" in
;;
*)
echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
exit 1
esac

View File

@ -1,18 +1,17 @@
#!/bin/sh
# Pandora FMS Linux Agent, startup script
# Pandora FMS SunOS Agent, startup script
# Copyright (c) 2006-2009 Artica ST, <info@artica.es>
# AIX 5.x Version (generic),
# v3.0 Build 090810
# SunOS Version (generic)
# v3.0.1 Build 091104
# http://www.pandorafms.com
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
PANDORA_PATH=/etc/pandora
DAEMON=/usr/bin/pandora_agent
LOGFILE=/var/log/pandora_agent.log
# This function replace pidof, not working in the same way in different linux distros
# This function replace pidof, not working in the same way in different UNIX
function pidof_pandora {
PANDORA_PID=`ps -Af | grep $DAEMON | grep -v grep | head -1 | awk '{ print $2 }'`
@ -70,7 +69,7 @@ case "$1" in
;;
*)
echo "Uso: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
echo "Usage: /etc/init.d/pandora_agent_daemon {start|stop|restart|status|force-reload}"
exit 1
esac