Commit d9e110c4 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

corrected, since use of "defined" on hash is deprecated

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3172
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent bbc569da
......@@ -40,13 +40,15 @@
# 31/07/00 V1.6 now uses /bin/bash as su login shell
# 15/08/00 V1.7 day-value in tm struct has range from 1 to 31
# 09/05/03 V1.8 logger now sits in /bin
# 20/09/10 V1.9 using function defined on a hash is deprecated
# using if instead
#
# ============================================================================
#
# we aren't using Sys::Syslog as I did not managed to get any message through
#use Sys::Syslog;
$VERSION="OBSERVER V1.8 central service";
$VERSION="OBSERVER V1.9 central service";
# called program name
# -------------------
......@@ -197,9 +199,9 @@ LOG "entered $VERSION";
# check definitions
# -----------------
unless ( defined %OBSERVER_CLIENT ) {
if (! (%OBSERVER_CLIENT)) {
FATAL_ERROR("config hash \$OBSERVER_CLIENT undefined!"); }
unless ( defined %OBSERVER_OKREPORT ) {
if (! (%OBSERVER_OKREPORT)) {
FATAL_ERROR("config hash \$OBSERVER_OKREPORT undefined!"); }
unless ( defined $OBSERVER_NOTIFY ) {
FATAL_ERROR("config variable \$OBSERVER_NOTIFY undefined!"); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment