## Set some global variables based on information from the bucardo_config table
## The reason file records startup and shutdown messages
-my $REASONFILE = "$bcargs->{debugdir}/" . do {
- get_config('reason_file') or die "Invalid reason_file!\n"
-};
+my $REASONFILE = get_config('reason_file') or die "Invalid reason_file!\n";
(my $REASONFILE_LOG = $REASONFILE) =~ s{(?:[.][^.]+)?$}{.log};
## The directory Bucardo.pm writes PID and other information to
Starts Bucardo. Fails if the MCP process is running (determined if its PID file is present).
Otherwise, starts cleanly by first issuing the equivalent of a stop to ask any existing Bucardo
processes to exit, and then starting a new Bucardo MCP process. A short reason and name should
-be provided - these are written to the C<reason_file> file (F<bucardo.restart.reason.txt> by
-default) in the C<debudir> and sent in the email sent when Bucardo has been started up. It is
-also appended to the reason log, which has the same name as the the C<reason_file> but ends in
-F<.log>.
+be provided - these are written to the C<reason_file> file (F<./bucardo.restart.reason.txt> by
+default) and sent in the email sent when Bucardo has been started up. It is also appended to
+the reason log, which has the same name as the the C<reason_file> but ends in F<.log>.
=item B<stop>
you should scan the list of processes after running this program to make sure that all Bucardo
processes have stopped. One should also provide a reason for issuing the stop - usually
this is a short explanation and your name. This is written to the C<reason_file> file
-(F<bucardo.restart.reason.txt> by default) in the C<debugdir> and is also used by Bucardo when
-it exits and sends out mail about its death. It is also appended to the reason log, which has
-the same name as the the C<reason_file> but ends in F<.log>.
+(F<./bucardo.restart.reason.txt> by default) and is also used by Bucardo when it exits and
+sends out mail about its death. It is also appended to the reason log, which has the same name
+as the the C<reason_file> but ends in F<.log>.
=item B<restart>