1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net-mgmt/pandorafms_server/files/199.clean-pandoradb.in
Motoyuki Konno c679424d17 Add Pandora FMS 4.0.1 - a Flexible Monitoring System.
WMI client 1.3.16 - a WMI (Windows Management Instrumentation) client
                        which is needed for Pandora FMS.
Submitted by:	KIKUCHI Koichiro <koichiro@rworks.jp>
		Junichi Satoh <junichi@junichi.org>
WWW;		http://pandorafms.org/
Feature safe:	yes
2012-04-21 12:27:40 +00:00

29 lines
481 B
Bash

#! /bin/sh
#
# $FreeBSD$
#
# Run the Pandora FMS database maintenace script.
#
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]; then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
rc=0
case "$daily_clean_pandoradb_enable" in
[Nn][Oo])
;;
*)
echo ""
echo "Running Pandora FMS DB maintenace script:"
%%PERL%% %%DATADIR%%/util/pandora_db.pl %%ETCDIR%%/pandora_server.conf || rc=3
;;
esac
exit $rc