315748 add --daemon

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1921 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-06-04 16:00:32 +00:00
parent 2c7f0f9372
commit 0cbb47daba
2 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,9 @@ import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
@ -163,9 +165,11 @@ public class Main
}
// Special internal indicator that jetty was started by the jetty.sh Daemon
if ("--fromDaemon".equals(arg))
if ("--daemon".equals(arg))
{
System.err.println("WARN: Ignored deprecated --fromDaemon");
PrintStream logger = new PrintStream(new FileOutputStream(new File(System.getProperty("jetty.log","."),"start.log")));
System.setOut(logger);
System.setErr(logger);
continue;
}

View File

@ -26,6 +26,9 @@ Command Line Options:
--stop Stop the running Jetty instance.
--daemon Start in daemon mode with stderr and stdout
redirected to ${jetty.log}/start.log
--config=<file> Specify an alternate start.config file.
The default is the start.config file inside
the start.jar. The default can also be specified