2004-08-23 07:33:14 +00:00
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2009-10-23 13:00:38 +00:00
<html><head>
2009-06-11 18:05:05 +00:00
<%@include file="css.jsp" %>
2009-10-23 13:55:44 +00:00
<%=intl.title("config service")%>
2004-08-23 07:33:14 +00:00
</head><body>
<%@include file="summary.jsp" %>
2009-10-23 13:55:44 +00:00
<h1><%=intl._("I2P Service Configuration")%></h1>
2004-08-23 07:33:14 +00:00
<div class="main" id="main">
<%@include file="confignav.jsp" %>
2009-08-15 16:08:33 +00:00
2004-08-23 07:33:14 +00:00
<jsp:useBean class="net.i2p.router.web.ConfigServiceHandler" id="formhandler" scope="request" />
<jsp:setProperty name="formhandler" property="*" />
<jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
2009-05-26 20:04:20 +00:00
<jsp:getProperty name="formhandler" property="allMessages" />
2009-07-17 17:33:35 +00:00
<div class="configure">
2004-08-23 07:33:14 +00:00
<form action="configservice.jsp" method="POST">
<% String prev = System.getProperty("net.i2p.router.web.ConfigServiceHandler.nonce");
if (prev != null) System.setProperty("net.i2p.router.web.ConfigServiceHandler.noncePrev", prev);
System.setProperty("net.i2p.router.web.ConfigServiceHandler.nonce", new java.util.Random().nextLong()+""); %>
<input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigServiceHandler.nonce")%>" />
2009-10-23 13:55:44 +00:00
<h3><%=intl._("Shutdown the router")%></h3>
2009-10-24 08:48:06 +00:00
<p><%=intl._("Graceful shutdown lets the router satisfy the agreements it has already made before shutting down, but may take a few minutes.")%>
<%=intl._("If you need to kill the router immediately, that option is available as well.")%></p>
2009-08-01 01:15:12 +00:00
<hr><div class="formaction">
2004-08-23 07:33:14 +00:00
<input type="submit" name="action" value="Shutdown gracefully" />
<input type="submit" name="action" value="Shutdown immediately" />
<input type="submit" name="action" value="Cancel graceful shutdown" />
2009-08-01 01:15:12 +00:00
</div>
2009-06-01 19:52:55 +00:00
<% if (System.getProperty("wrapper.version") != null) { %>
2009-10-24 08:48:06 +00:00
<p><%=intl._("If you want the router to restart itself after shutting down, you can choose one of the following.")%>
<%=intl._("This is useful in some situations")%> -
<%=intl._("for example, if you changed some settings that client applications only read at startup, such as the routerconsole password or the interface it listens on.")%>
<%=intl._("A graceful restart will take a few minutes (but your peers will appreciate your patience), while a hard restart does so immediately.")%>
<%=intl._("After tearing down the router, it will wait 1 minute before starting back up again.")%></p>
2009-08-01 01:15:12 +00:00
<hr><div class="formaction">
2004-09-06 05:20:40 +00:00
<input type="submit" name="action" value="Graceful restart" />
2004-08-24 18:02:48 +00:00
<input type="submit" name="action" value="Hard restart" />
2009-08-01 01:15:12 +00:00
<% } %></div>
2004-09-01 03:47:04 +00:00
<% if ( (System.getProperty("os.name") != null) && (System.getProperty("os.name").startsWith("Win")) ) { %>
2009-10-23 13:55:44 +00:00
<h3><%=intl._("Systray integration")%></h3>
2009-10-24 08:48:06 +00:00
<p><%=intl._("On the windows platform, there is a small application to sit in the system tray, allowing you to view the router's status")%>
<%=intl._("(later on, I2P client applications will be able to integrate their own functionality into the system tray as well).")%>
<%=intl._("If you are on windows, you can either enable or disable that icon here.")%></p>
2009-08-01 01:15:12 +00:00
<hr><div class="formaction">
2004-08-23 21:32:24 +00:00
<input type="submit" name="action" value="Show systray icon" />
<input type="submit" name="action" value="Hide systray icon" />
2009-10-23 13:55:44 +00:00
</div><h3><%=intl._("Run on startup")%></h3>
2009-10-24 08:48:06 +00:00
<p><%=intl._("You can control whether I2P is run on startup or not by selecting one of the following options")%> -
<%=intl._("I2P will install (or remove) a service accordingly.")%>
2009-10-24 06:10:40 +00:00
<%=intl._("If you prefer the command line, you can also run the ")%> <code>install_i2p_service_winnt.bat</code> (<%=intl._("or")%>
<code>uninstall_i2p_service_winnt.bat</code>).</p>
2009-08-01 01:15:12 +00:00
<hr><div class="formaction">
2004-08-23 07:33:14 +00:00
<input type="submit" name="action" value="Run I2P on startup" />
2009-08-01 01:15:12 +00:00
<input type="submit" name="action" value="Don't run I2P on startup" /></div>
2009-10-24 08:48:06 +00:00
<p><b><%=intl._("Note")%>:</b> <%=intl._("If you are running I2P as service right now, removing it will shut down your router immediately.")%>
<%=intl._("You may want to consider shutting down gracefully, as above, then running uninstall_i2p_service_winnt.bat.")%></p>
2004-08-31 21:25:23 +00:00
<% } %>
2009-06-01 19:52:55 +00:00
<% if (System.getProperty("wrapper.version") != null) { %>
2009-10-23 13:55:44 +00:00
<h3><%=intl._("Debugging")%></h3>
2009-10-24 08:48:06 +00:00
<p> At times, it may be helpful to debug I2P by getting a thread dump.
To do so, please select the following option and review the thread dumped to
2004-09-06 05:20:40 +00:00
<a href="logs.jsp#servicelogs">wrapper.log</a>.</p>
2009-08-01 01:15:12 +00:00
<hr><div class="formaction">
2004-08-23 21:32:24 +00:00
<input type="submit" name="action" value="Dump threads" />
2009-08-01 01:15:12 +00:00
<% } %></div>
2009-08-15 16:08:33 +00:00
2009-10-23 13:55:44 +00:00
<h3><%=intl._("Launch browser on router startup?")%></h3>
2009-10-24 06:10:40 +00:00
<p><%=intl._("I2P's main configuration interface is this web console, so for your convenience I2P can launch a web browser on startup pointing at")%>
<a href="http://127.0.0.1:7657/index.jsp">http://127.0.0.1:7657/index.jsp</a> .</p>
2009-08-01 01:15:12 +00:00
<hr><div class="formaction">
2004-11-25 21:57:19 +00:00
<input type="submit" name="action" value="View console on startup" />
<input type="submit" name="action" value="Do not view console on startup" />
2009-08-15 16:08:33 +00:00
</div></form></div></div></body></html>