'logseparate|log-sep|log-separate|debugfilesep!',
'logextension|log-extension|log-ext|debugname=s',
'logclean|log-clean!',
+ 'piddir=s',
## Used internally
'force',
(my $REASONFILE_LOG = $REASONFILE) =~ s{(?:[.][^.]+)?$}{.log};
## The directory Bucardo.pm writes PID and other information to
-my $PIDDIR = get_config('piddir') or die "Invalid piddir!\n";
+my $PIDDIR = $bcargs->{piddir} || get_config('piddir') or die "Invalid piddir!\n";
## The PID file of the master control file (MCP)
## If this exists, it is a good bet that Bucardo is currently running