FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 07-22-2008, 06:11 AM
 
Default Cluster Project branch, master, updated. cluster-2.99.06-42-g228cbfc

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=228cbfc49f 5acbd8a0dc514b7385f7d9fd4ae6c5

The branch, master has been updated
via 228cbfc49f5acbd8a0dc514b7385f7d9fd4ae6c5 (commit)
from 4c05bff7a76b6909b350b2d4d1ad06f48f968510 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 228cbfc49f5acbd8a0dc514b7385f7d9fd4ae6c5
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
Date: Tue Jul 22 07:10:35 2008 +0200

[FENCE] Fix fence_apc_snmp logging

Move log file together with all the others when invoked in verbose mode.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
fence/agents/apc_snmp/fence_apc_snmp.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fence/agents/apc_snmp/fence_apc_snmp.py b/fence/agents/apc_snmp/fence_apc_snmp.py
index 63de054..a2faef4 100644
--- a/fence/agents/apc_snmp/fence_apc_snmp.py
+++ b/fence/agents/apc_snmp/fence_apc_snmp.py
@@ -215,7 +215,7 @@ def usage():
print " -c <community> SNMP community (default 'private')"
print " -n <num> Outlet name/number to act on"
print " -o <string> Action: Reboot (default), On, Off and Status"
- print " -v Verbose mode - write to /tmp/apclog"
+ print " -v Verbose mode - write to @LOGDIR@/fence_apc_snmp.log"
print " -V Version"

sys.exit(0)
@@ -226,7 +226,7 @@ file_log = None
def set_logging(verbose):
global file_log
if verbose:
- file_log = open('/tmp/apclog', 'a')
+ file_log = open('@LOGDIR@/fence_apc_snmp.log', 'a')
file_log.write('
----------- ')
file_log.write(datetime.datetime.today().ctime())
file_log.write(' -----------
')


hooks/post-receive
--
Cluster Project
 

Thread Tools




All times are GMT. The time now is 10:51 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org