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-11-21 13:33:57 +00:00
<%@include file="css.jsi" %>
2009-10-23 13:55:44 +00:00
<%=intl.title("config service")%>
2012-06-05 13:37:10 +00:00
<script src="/js/ajax.js" type="text/javascript"></script>
2012-07-17 00:47:08 +00:00
<%@include file="summaryajax.jsi" %>
2012-06-05 13:37:10 +00:00
</head><body onload="initAjax()">
2004-08-23 07:33:14 +00:00
2009-11-21 13:33:57 +00:00
<%@include file="summary.jsi" %>
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">
2009-11-21 13:33:57 +00:00
<%@include file="confignav.jsi" %>
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" />
2012-10-20 20:52:45 +00:00
<%@include file="formhandler.jsi" %>
2009-07-17 17:33:35 +00:00
<div class="configure">
2010-11-19 15:23:25 +00:00
<form action="" method="POST">
2012-10-20 20:52:45 +00:00
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
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">
2011-11-30 23:23:41 +00:00
<input type="submit" class="stop" name="action" value="<%=intl._("Shutdown gracefully")%>" >
<input type="submit" class="stop" name="action" value="<%=intl._("Shutdown immediately")%>" >
2015-03-08 20:23:00 +00:00
<% if (formhandler.shouldShowCancelGraceful()) { %>
<input type="submit" class="cancel" name="action" value="<%=intl._("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.")%>
2010-01-08 15:46:22 +00:00
<%=intl._("This is useful in some situations - 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.")%>
2009-10-24 08:48:06 +00:00
<%=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">
2011-11-30 23:23:41 +00:00
<input type="submit" class="reload" name="action" value="<%=intl._("Graceful restart")%>" >
<input type="submit" class="reload" name="action" value="<%=intl._("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")) ) { %>
2011-02-27 13:53:39 +00:00
<h3><%=intl._("Systray integration")%></h3>
<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>
<hr><div class="formaction">
<input type="submit" name="action" value="<%=intl._("Show systray icon")%>" >
<input type="submit" name="action" value="<%=intl._("Hide systray icon")%>" >
</div>
2011-01-19 16:51:42 +00:00
<h3><%=intl._("Run on startup")%></h3>
2010-01-08 15:46:22 +00:00
<p><%=intl._("You can control whether I2P is run on startup or not by selecting one of the following options - 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">
2009-10-26 21:48:46 +00:00
<input type="submit" name="action" value="<%=intl._("Run I2P on startup")%>" >
<input type="submit" name="action" value="<%=intl._("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
2009-10-23 13:55:44 +00:00
<h3><%=intl._("Debugging")%></h3>
2010-11-19 15:23:25 +00:00
<p><a href="/jobs"><%=intl._("View the job queue")%></a>
2012-10-05 13:09:34 +00:00
<% if (System.getProperty("wrapper.version") != null) { %>
2010-01-08 15:46:22 +00:00
<p><%=intl._("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 <a href=\"logs.jsp#servicelogs\">wrapper.log</a>.")%></p>
2012-10-05 13:09:34 +00:00
<hr>
2010-03-02 22:54:32 +00:00
<% } %>
2012-10-05 13:09:34 +00:00
<div class="formaction">
<input type="submit" class="reload" name="action" value="<%=intl._("Force GC")%>" >
<% if (System.getProperty("wrapper.version") != null) { %>
<input type="submit" class="download" name="action" value="<%=intl._("Dump threads")%>" >
<% } %>
</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")%>
2010-11-19 15:23:25 +00:00
<a href="http://127.0.0.1:7657/">http://127.0.0.1:7657/</a> .</p>
2009-08-01 01:15:12 +00:00
<hr><div class="formaction">
2012-10-05 13:09:34 +00:00
<input type="submit" class="check" name="action" value="<%=intl._("View console on startup")%>" >
<input type="submit" class="delete" name="action" value="<%=intl._("Do not view console on startup")%>" >
2009-08-15 16:08:33 +00:00
</div></form></div></div></body></html>