projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* BackupPC_trashClean now logs an error if it can't remove all the
[BackupPC.git]
/
bin
/
BackupPC_trashClean
diff --git
a/bin/BackupPC_trashClean
b/bin/BackupPC_trashClean
index
cabeffb
..
43abbf6
100755
(executable)
--- a/
bin/BackupPC_trashClean
+++ b/
bin/BackupPC_trashClean
@@
-29,7
+29,7
@@
#
#========================================================================
#
#
#========================================================================
#
-# Version 2.0.0
_CVS, released 18 Jan
2003.
+# Version 2.0.0
beta2, released 13 Apr
2003.
#
# See http://backuppc.sourceforge.net.
#
#
# See http://backuppc.sourceforge.net.
#
@@
-51,7
+51,9
@@
$bpc->ChildInit();
###########################################################################
while ( 1 ) {
print("processState running\n");
###########################################################################
while ( 1 ) {
print("processState running\n");
- 1 while ( $bpc->RmTreeTrashEmpty("$TopDir/trash") );
+ if ( $bpc->RmTreeTrashEmpty("$TopDir/trash") < 0 ) {
+ print("log BackupPC_trashClean failed to empty $TopDir/trash\n");
+ }
print("processState idle\n");
sleep($Conf{TrashCleanSleepSec} || 300);
}
print("processState idle\n");
sleep($Conf{TrashCleanSleepSec} || 300);
}