X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC;h=786ecbaa87dbea33cc47c6ba6167ca0d86948ab6;hp=d981c18f75e7f4471615e587e1c149974294fda0;hb=refs%2Ftags%2Fv3_0_0beta2;hpb=4cdaa6b8a9f5161ee2da4371d68cbbad41248ea0 diff --git a/bin/BackupPC b/bin/BackupPC index d981c18..786ecba 100755 --- a/bin/BackupPC +++ b/bin/BackupPC @@ -47,7 +47,7 @@ # #======================================================================== # -# Version 3.0.0beta0, released 11 Jul 2006. +# Version 3.0.0beta2, released 18 Nov 2006. # # See http://backuppc.sourceforge.net. # @@ -113,9 +113,13 @@ if ( $Conf{BackupPCUserVerify} # Read old status # if ( -f "$LogDir/status.pl" && !(my $ret = do "$LogDir/status.pl") ) { - die "couldn't parse $LogDir/status.pl: $@" if $@; - die "couldn't do $LogDir/status.pl: $!" unless defined $ret; - die "couldn't run $LogDir/status.pl"; + if ( $@ ) { + print STDERR "couldn't parse $LogDir/status.pl: $@"; + } elsif ( !defined($ret) ) { + print STDERR "couldn't do $LogDir/status.pl: $!"; + } else { + print STDERR "couldn't run $LogDir/status.pl"; + } } # @@ -345,9 +349,11 @@ sub Main_Initialize # Write out our initial status and save our PID # StatusWrite(); + unlink("$LogDir/BackupPC.pid"); if ( open(PID, ">", "$LogDir/BackupPC.pid") ) { print(PID $$); close(PID); + chmod(0444, "$LogDir/BackupPC.pid"); } #