"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pandora_server_installer" between
pandorafms_server-7.0NG.756.tar.gz and pandorafms_server-7.0NG.757.tar.gz

About: Pandora FMS (Flexible Monitoring System) offers enterprise IT monitoring for networks, applications, servers and virtual infrastructure. Core server.

pandora_server_installer  (pandorafms_server-7.0NG.756):pandora_server_installer  (pandorafms_server-7.0NG.757)
#!/bin/sh #!/bin/sh
# Pandora FMS Server Installer (c) 2008-2013 Artica ST # Pandora FMS Server Installer (c) 2008-2013 Artica ST
# Linux/FreeBSD Version (generic), for SuSe, Debian/Ubuntu and FreeBSD only # Linux/FreeBSD Version (generic), for SuSe, Debian/Ubuntu and FreeBSD only
# other Linux distros could not work properly without modifications # other Linux distros could not work properly without modifications
# Please see http://www.pandorafms.org # Please see http://www.pandorafms.org
# v5.0 Build 130207 # v5.0 Build 130207
# This code is licensed under GPL 2.0 license. # This code is licensed under GPL 2.0 license.
# ********************************************************************** # **********************************************************************
PI_VERSION="7.0NG.756" PI_VERSION="7.0NG.757"
PI_BUILD="210726" PI_BUILD="210915"
MODE=$1 MODE=$1
if [ $# -gt 1 ]; then if [ $# -gt 1 ]; then
shift shift
fi fi
# Defaults # Defaults
PREFIX=/usr PREFIX=/usr
PANDORA_SPOOL=/var/spool/pandora PANDORA_SPOOL=/var/spool/pandora
PANDORA_HOME=$PREFIX/share/pandora_server PANDORA_HOME=$PREFIX/share/pandora_server
skipping to change at line 430 skipping to change at line 430
echo ">Installing the pandora_ha binary to $INSTALL_DIR..." echo ">Installing the pandora_ha binary to $INSTALL_DIR..."
cp -f util/pandora_ha.pl "$INSTALL_DIR/pandora_ha" cp -f util/pandora_ha.pl "$INSTALL_DIR/pandora_ha"
chmod +x "$INSTALL_DIR/pandora_ha" chmod +x "$INSTALL_DIR/pandora_ha"
echo ">Installing pandora_ha service to $INSTALL_DIR..." echo ">Installing pandora_ha service to $INSTALL_DIR..."
[ -d "$PID_DIR" ] || mkdir -p "$PID_DIR" [ -d "$PID_DIR" ] || mkdir -p "$PID_DIR"
[ -d "$SYSTEMD_DIR" ] || mkdir -p "$SYSTEMD_DIR" [ -d "$SYSTEMD_DIR" ] || mkdir -p "$SYSTEMD_DIR"
cat > $SYSTEMD_DIR/pandora_ha.service <<-EOF cat > $SYSTEMD_DIR/pandora_ha.service <<-EOF
[Unit] [Unit]
Description=Pandora FMS Database HA Tool Description=Pandora FMS Daemon Watchdog
[Service] [Service]
Type=forking Type=forking
User=$USER User=$USER
PIDFile=$PID_DIR/pandora_ha.pid PIDFile=$PID_DIR/pandora_ha.pid
Restart=always Restart=always
ExecStart=${INSTALL_DIR}pandora_ha -d -p $PID_DIR/pandora_ha.pid $PANDORA_CONF ExecStart=${INSTALL_DIR}pandora_ha -d -p $PID_DIR/pandora_ha.pid $PANDORA_CONF
[Install] [Install]
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)