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" %>
2015-09-25 19:55:36 +00:00
<h1><%=intl._t("I2P Service Configuration")%></h1>
2016-05-23 05:41:24 +00:00
<div class="main" id="config_service">
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" %>
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%>" >
2016-04-18 04:12:15 +00:00
<h3 class="ptitle" id="shutdownrouter"><%=intl._t("Shutdown the router")%></h3>
<p class="infohelp">
<%=intl._t("Graceful shutdown lets the router satisfy the agreements it has already made before shutting down, but may take a few minutes.")%>
2015-09-25 19:55:36 +00:00
<%=intl._t("If you need to kill the router immediately, that option is available as well.")%></p>
2016-04-18 04:12:15 +00:00
<hr><div class="formaction" id="shutdown">
2015-09-25 19:55:36 +00:00
<input type="submit" class="stop" name="action" value="<%=intl._t("Shutdown gracefully")%>" >
<input type="submit" class="stop" name="action" value="<%=intl._t("Shutdown immediately")%>" >
2015-03-08 20:23:00 +00:00
<% if (formhandler.shouldShowCancelGraceful()) { %>
2015-09-25 19:55:36 +00:00
<input type="submit" class="cancel" name="action" value="<%=intl._t("Cancel graceful shutdown")%>" >
2015-03-08 20:23:00 +00:00
<% } %>
2009-08-01 01:15:12 +00:00
</div>
2009-06-01 19:52:55 +00:00
<% if (System.getProperty("wrapper.version") != null) { %>
2016-04-18 04:12:15 +00:00
<h3 class="ptitle" id="restartrouter"><%=intl._t("Restart the router")%></h3>
<p class="infohelp">
<%=intl._t("If you want the router to restart itself after shutting down, you can choose one of the following.")%>
2015-09-25 19:55:36 +00:00
<%=intl._t("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.")%>
<%=intl._t("A graceful restart will take a few minutes (but your peers will appreciate your patience), while a hard restart does so immediately.")%>
<%=intl._t("After tearing down the router, it will wait 1 minute before starting back up again.")%></p>
2016-04-18 04:12:15 +00:00
<hr><div class="formaction" id="restart">
2015-09-25 19:55:36 +00:00
<input type="submit" class="reload" name="action" value="<%=intl._t("Graceful restart")%>" >
<input type="submit" class="reload" name="action" value="<%=intl._t("Hard restart")%>" >
2018-07-16 18:09:54 +00:00
</div>
<%
}
if (formhandler.shouldShowSystray()) {
%>
2016-04-18 04:12:15 +00:00
<h3 class="ptitle" id="systray"><%=intl._t("Systray integration")%></h3>
2016-05-08 21:47:30 +00:00
<p class="infohelp"><%=intl._t("Control the system tray icon")%></p>
2016-04-18 04:12:15 +00:00
<hr><div class="formaction" id="systray">
2016-05-06 17:54:27 +00:00
<% if (!formhandler.isSystrayEnabled()) { %>
<input type="submit" name="action" class="accept" value="<%=intl._t("Show systray icon")%>" >
<% } else {%>
<input type="submit" name="action" class="cancel" value="<%=intl._t("Hide systray icon")%>" >
<% } %>
2011-02-27 13:53:39 +00:00
</div>
2016-05-06 17:54:27 +00:00
<%
}
2016-10-20 17:15:51 +00:00
if ( (System.getProperty("os.name") != null) && (System.getProperty("os.name").startsWith("Win")) ) {
2016-05-06 17:54:27 +00:00
%>
2016-04-18 04:12:15 +00:00
<h3 class="ptitle" id="runonstartup"><%=intl._t("Run on startup")%></h3>
<p class="infohelp">
<%=intl._t("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.")%>
2015-09-25 19:55:36 +00:00
<%=intl._t("If you prefer the command line, you can also run the ")%> <code>install_i2p_service_winnt.bat</code> (<%=intl._t("or")%>
2009-10-24 06:10:40 +00:00
<code>uninstall_i2p_service_winnt.bat</code>).</p>
2016-04-18 04:12:15 +00:00
<hr><div class="formaction" id="runonstart">
2016-05-06 17:54:27 +00:00
<input type="submit" name="action" class="accept" value="<%=intl._t("Run I2P on startup")%>" >
2016-05-08 21:47:30 +00:00
<input type="submit" name="action" class="cancel" value="<%=intl._t("Don't run I2P on startup")%>" ></div>
2016-04-18 04:12:15 +00:00
<p class="infohelp" id="winfoservice"><b>
<%=intl._t("Note")%>:</b> <%=intl._t("If you are running I2P as service right now, removing it will shut down your router immediately.")%>
2015-09-25 19:55:36 +00:00
<%=intl._t("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
2016-05-23 11:02:10 +00:00
<h3 class="ptitle" id="servicedebug"><%=intl._t("Debugging")%> <a href="/jobs">[<%=intl._t("View the job queue")%>]</a></h3>
2016-04-18 04:12:15 +00:00
<p class="infohelp">
2018-07-16 18:09:54 +00:00
<% if (System.getProperty("wrapper.version") != null) { %>
<%=intl._t("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>.")%>
<% } else { // hack to make layout work for non-wrapper %>
2010-03-02 22:54:32 +00:00
<% } %>
2018-07-16 18:09:54 +00:00
</p>
<hr>
2016-04-18 04:12:15 +00:00
<div class="formaction" id="dumpthreads">
2015-09-25 19:55:36 +00:00
<input type="submit" class="reload" name="action" value="<%=intl._t("Force GC")%>" >
2012-10-05 13:09:34 +00:00
<% if (System.getProperty("wrapper.version") != null) { %>
2015-09-25 19:55:36 +00:00
<input type="submit" class="download" name="action" value="<%=intl._t("Dump threads")%>" >
2012-10-05 13:09:34 +00:00
<% } %>
</div>
2009-08-15 16:08:33 +00:00
2016-04-18 04:12:15 +00:00
<h3 class="ptitle" id="browseronstart"><%=intl._t("Launch browser on router startup?")%></h3>
<p class="infohelp">
2018-01-18 13:25:21 +00:00
<% String consoleURL = formhandler.getConsoleURL(); %>
<%=intl._t("I2P''s main configuration interface is this web console, so for your convenience I2P can launch a web browser on startup pointing at {0}.", "<a href=\"" + consoleURL + "\">" + consoleURL + "</a>")%>
2018-01-18 12:13:40 +00:00
</p>
2016-04-18 04:12:15 +00:00
<hr><div class="formaction" id="browserstart">
2015-09-25 19:55:36 +00:00
<input type="submit" class="check" name="action" value="<%=intl._t("View console on startup")%>" >
<input type="submit" class="delete" name="action" value="<%=intl._t("Do not view console on startup")%>" >
2016-04-18 04:12:15 +00:00
</div></form></div></body></html>