Bug 38 - slon_start file descriptor redirection wrong
Summary: slon_start file descriptor redirection wrong
Status: RESOLVED FIXED
Alias: None
Product: Slony-I
Classification: Unclassified
Component: altperl (show other bugs)
Version: 1.2
Hardware: All All
: medium normal
Assignee: Slony Bugs List
URL:
Depends on:
Blocks:
 
Reported: 2008-03-06 01:34 UTC by Peter Eisentraut
Modified: 2008-03-06 11:21 UTC (History)
1 user (show)

See Also:


Attachments
Patch (1.23 KB, patch)
2008-03-06 01:34 UTC, Peter Eisentraut
Details

Note You need to log in before you can comment on or make changes to this bug.
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...