As get_config already dies on failure to find a match, remove the || dies after calli...
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 17 Jan 2015 05:02:05 +0000 (00:02 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 17 Jan 2015 05:02:05 +0000 (00:02 -0500)
bucardo

diff --git a/bucardo b/bucardo
index 04cc5a8152b9dda80b99bfe2fdf8fc3ea7b80b8e..9bc65888079dfeeff903fba02013eebcce55fed7 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -322,18 +322,18 @@ $dbh->commit();
 ## Set some global variables based on information from the bucardo_config table
 
 ## The reason file records startup and shutdown messages
-$REASONFILE = get_config('reason_file') or die "Invalid reason_file!\n";
+$REASONFILE = get_config('reason_file');
 ($REASONFILE_LOG = $REASONFILE) =~ s{(?:[.][^.]+)?$}{.log};
 
 ## The directory Bucardo.pm writes PID and other information to
-my $PIDDIR = $bcargs->{piddir} || get_config('piddir') or die "Invalid piddir!\n";
+my $PIDDIR = $bcargs->{piddir} || get_config('piddir');
 
 ## The PID file of the master control file (MCP)
 ## If this exists, it is a good bet that Bucardo is currently running
 my $PIDFILE = "$PIDDIR/bucardo.mcp.pid";
 
 ## The stop file whose existence tells all Bucardo processes to exit immediately
-my $stopfile = get_config('stopfile') or die "Invalid stopfile!\n";
+my $stopfile = get_config('stopfile');
 $STOPFILE = "$PIDDIR/$stopfile";
 
 ## Aliases for terms people may shorten, misspell, etc.