Bug 38

Summary: slon_start file descriptor redirection wrong
Product: Slony-I Reporter: Peter Eisentraut <peter>
Component: altperlAssignee: Slony Bugs List <slony1-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: slony1-bugs
Priority: medium    
Version: 1.2   
Hardware: All   
OS: All   
Attachments: Patch

Description Peter Eisentraut 2008-03-06 01:34:40 UTC
Created attachment 9 [details]
Patch

The way the function start_slon in slon-tools.pm assembles the command line creates a command that looks like this:

slon ... 2>&1 >logfile &

This ends up dumping the error messages on the console (or wherever) and only stdout to the log file.  What you want is this:

slon ... >logfile 2>&1 &

The attached patch fixes this.
Comment 1 Christopher Browne 2008-03-06 11:21:47 UTC
Applied to CVS HEAD...