<% var page = 'process'; %> <% if (typeof q != 'undefined' && 'refresh' in q) { %> <% } %> <% include head%>
<% include header%>
Name
PM ID
PID
Status
Uptime
Restarts

<% for (key in processApps) { %>
<%= key %>
<%= processApps[key].pm_id %>
<%= processApps[key].pid %>
<%= processApps[key].status %>
<%= processApps[key].uptime %>
<%= processApps[key].restarts %>
<% if (pApps.indexOf(key) > -1) { %>Start<% } %>
<% if (processApps[key].status == "online") { %> Stop <% } else { %> <% if (pApps.indexOf(key) == -1) { %> Delete <% } %> <% } %>
<% if (pApps.indexOf(key) > -1) { %>Restart<% } %>
<% } %>

Process Manager
If you remove a running service, you will need to 'Stop' it above..
CAUTION! Do not stop or remove Server! <% for (key in version) { %> <% if (version[key].service == 'yes') { %>

<%= key %>
<% if (pApps.indexOf(key) > -1) { %> <% } else { %> <% } %> <% if ( !(key in processApps) && pApps.indexOf(key) > -1) { %> <% } %>
<% } %> <% } %>