source: apps/routerconsole/jsp/configservice.jsp @ 62296222

Last change on this file since 62296222 was 62296222, checked in by zzz <zzz@…>, 4 years ago

Console:

  • Show systray controls for all OSes on /configservice
  • Implement backend for systray control
  • Property mode set to 100644
File size: 4.9 KB
Line 
1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
5<html><head>
6<%@include file="css.jsi" %>
7<%=intl.title("config service")%>
8<script src="/js/ajax.js" type="text/javascript"></script>
9<%@include file="summaryajax.jsi" %>
10</head><body onload="initAjax()">
11
12<%@include file="summary.jsi" %>
13<h1><%=intl._t("I2P Service Configuration")%></h1>
14<div class="main" id="main">
15 <%@include file="confignav.jsi" %>
16
17 <jsp:useBean class="net.i2p.router.web.ConfigServiceHandler" id="formhandler" scope="request" />
18<%@include file="formhandler.jsi" %>
19 <div class="configure">
20 <form action="" method="POST">
21 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
22 <h3><%=intl._t("Shutdown the router")%></h3>
23 <p><%=intl._t("Graceful shutdown lets the router satisfy the agreements it has already made before shutting down, but may take a few minutes.")%> 
24    <%=intl._t("If you need to kill the router immediately, that option is available as well.")%></p>
25  <hr><div class="formaction">
26 <input type="submit" class="stop" name="action" value="<%=intl._t("Shutdown gracefully")%>" >
27 <input type="submit" class="stop" name="action" value="<%=intl._t("Shutdown immediately")%>" >
28 <% if (formhandler.shouldShowCancelGraceful()) { %>
29     <input type="submit" class="cancel" name="action" value="<%=intl._t("Cancel graceful shutdown")%>" >
30 <% } %>
31 </div>
32 <% if (System.getProperty("wrapper.version") != null) { %>
33 <p><%=intl._t("If you want the router to restart itself after shutting down, you can choose one of the following.")%> 
34    <%=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.")%> 
35    <%=intl._t("A graceful restart will take a few minutes (but your peers will appreciate your patience), while a hard restart does so immediately.")%> 
36    <%=intl._t("After tearing down the router, it will wait 1 minute before starting back up again.")%></p>
37 <hr><div class="formaction">
38 <input type="submit" class="reload" name="action" value="<%=intl._t("Graceful restart")%>" >
39 <input type="submit" class="reload" name="action" value="<%=intl._t("Hard restart")%>" >
40 <% } %></div>
41
42<% if (formhandler.shouldShowSystray()) { %>
43 <h3><%=intl._t("Systray integration")%></h3>
44 <p><%=intl._t("Control the system tray icon")%> 
45 <hr><div class="formaction">
46<% if (!formhandler.isSystrayEnabled()) { %>
47 <input type="submit" name="action" class="accept" value="<%=intl._t("Show systray icon")%>" >
48<% } else {%>
49 <input type="submit" name="action" class="cancel" value="<%=intl._t("Hide systray icon")%>" >
50<% } %>
51 </div>
52<%
53   } 
54   if ( (System.getProperty("os.name") != null) && (System.getProperty("os.name").startsWith("Win")) ) { %>
55%>
56 <h3><%=intl._t("Run on startup")%></h3>
57 <p><%=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.")%> 
58    <%=intl._t("If you prefer the command line, you can also run the ")%> <code>install_i2p_service_winnt.bat</code> (<%=intl._t("or")%>
59 <code>uninstall_i2p_service_winnt.bat</code>).</p>
60 <hr><div class="formaction">
61 <input type="submit" name="action" class="accept" value="<%=intl._t("Run I2P on startup")%>" >
62<input type="submit" name="action" class="cancel" value="<%=intl._t("Don't run I2P on startup")%>" ></div>
63 <p><b><%=intl._t("Note")%>:</b> <%=intl._t("If you are running I2P as service right now, removing it will shut down your router immediately.")%> 
64    <%=intl._t("You may want to consider shutting down gracefully, as above, then running uninstall_i2p_service_winnt.bat.")%></p>
65<% } %>
66
67 <h3><%=intl._t("Debugging")%></h3>
68 <p><a href="/jobs"><%=intl._t("View the job queue")%></a>
69<% if (System.getProperty("wrapper.version") != null) { %>
70 <p><%=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>.")%></p>
71  <hr>
72<% } %>
73 <div class="formaction">
74 <input type="submit" class="reload" name="action" value="<%=intl._t("Force GC")%>" >
75<% if (System.getProperty("wrapper.version") != null) { %>
76 <input type="submit" class="download" name="action" value="<%=intl._t("Dump threads")%>" >
77<% } %>
78 </div>
79
80 <h3><%=intl._t("Launch browser on router startup?")%></h3>
81 <p><%=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")%>
82 <a href="http://127.0.0.1:7657/">http://127.0.0.1:7657/</a> .</p>
83 <hr><div class="formaction">
84 <input type="submit" class="check" name="action" value="<%=intl._t("View console on startup")%>" >
85 <input type="submit" class="delete" name="action" value="<%=intl._t("Do not view console on startup")%>" >
86</div></form></div></div></body></html>
Note: See TracBrowser for help on using the repository browser.