FoundationDB/sql-layer — pull request #1023 by nathanlws (2013-11-04 22:47:08+00:00)
Title: Some tightening and defensiveness around stdout and stderr

The Linux packages redirected stdout/err output to /dev/null on the thinking that it would never be relevant. Two cases where it is: something actual writes to it (e.g. uncaught exception from another thread) or start failure (e.g. classpath issue).

Fix the former by redirecting standard streams to the configured logger. This will catch another failure like happened over the weekend in the nightly tests.

The second was already handled in the OS X and Windows packages, probably because we had more issues with those. Bring the deb and rpm up to snuff in that regard by redirecting to stdout.log, a sibling of layer.log. This should always empty unless something very bad happens before main(). A minor amount of shuffling and consolidation in the two init scripts to facilitate this.