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:
parent
2c7f0f9372
commit
0cbb47daba
|
@ -17,7 +17,9 @@ import java.io.File;
|
||||||
import java.io.FileFilter;
|
import java.io.FileFilter;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
@ -163,9 +165,11 @@ public class Main
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special internal indicator that jetty was started by the jetty.sh Daemon
|
// 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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,9 @@ Command Line Options:
|
||||||
|
|
||||||
--stop Stop the running Jetty instance.
|
--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.
|
--config=<file> Specify an alternate start.config file.
|
||||||
The default is the start.config file inside
|
The default is the start.config file inside
|
||||||
the start.jar. The default can also be specified
|
the start.jar. The default can also be specified
|
||||||
|
|
Loading…
Reference in New Issue