[interchange-cvs] interchange - docelic modified lib/Vend/Config.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon Nov 1 14:10:49 EST 2004
User: docelic
Date: 2004-11-01 19:10:49 GMT
Modified: lib/Vend Config.pm
Log:
* PIDcheck, HouseKeeping and HammerLock configuration directives now
accept the standard time definition, instead of just an integer
meaning the number of seconds.
So, the following format is now recognized and automatically converted
to seconds (as seen in Vend::Config::time_to_seconds()):
10
10 s|sec|secs|second|seconds
10 m|min|mins|minute|minutes
10 h|hour|hours
10 d|day|days
10 w|week|weeks
Revision Changes Path
2.150 +5 -5 interchange/lib/Vend/Config.pm
rev 2.150, prev_rev 2.149
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.149
retrieving revision 2.150
diff -u -r2.149 -r2.150
--- Config.pm 29 Oct 2004 13:20:18 -0000 2.149
+++ Config.pm 1 Nov 2004 19:10:49 -0000 2.150
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.149 2004/10/29 13:20:18 racke Exp $
+# $Id: Config.pm,v 2.150 2004/11/01 19:10:49 docelic Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -48,7 +48,7 @@
use Vend::File;
use Vend::Data;
-$VERSION = substr(q$Revision: 2.149 $, 10);
+$VERSION = substr(q$Revision: 2.150 $, 10);
my %CDname;
my %CPname;
@@ -308,7 +308,7 @@
['SOAP_Control', 'action', ''],
['Jobs', 'hash', 'MaxLifetime 600 MaxServers 1'],
['IPCsocket', undef, "$Global::VendRoot/etc/socket.ipc"],
- ['HouseKeeping', 'integer', 60],
+ ['HouseKeeping', 'time_to_seconds', 60],
['Mall', 'yesno', 'No'],
['TagGroup', 'tag_group', $StdTags],
['TagInclude', 'tag_include', 'ALL'],
@@ -335,7 +335,7 @@
['RobotHost', 'list_wildcard_full', ''],
['HostnameLookups', 'yesno', 'No'],
['TolerateGet', 'yesno', 'No'],
- ['PIDcheck', 'integer', '0'],
+ ['PIDcheck', 'time_to_seconds', '0'],
['LockoutCommand', undef, ''],
['SafeUntrap', 'array', 'ftfile sort'],
['SafeTrap', 'array', ':base_io'],
@@ -347,7 +347,7 @@
['HotDBI', 'boolean', ''],
['AdminUser', undef, ''],
['AdminHost', undef, ''],
- ['HammerLock', 'integer', 30],
+ ['HammerLock', 'time_to_seconds', 30],
['DataTrace', 'integer', 0],
['ShowTimes', 'yesno', 0],
['ErrorFile', undef, undef],
More information about the interchange-cvs
mailing list