Mini Servers: Start Stop design notes: Difference between revisions

Jump to navigation Jump to search
no edit summary
(New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | MPG UniCenter || Mini Servers Start and Stop batch file design ...)
 
No edit summary
Line 1: Line 1:
<span id="top"></span>
=[http://azysijogen.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
<div style="padding:0;margin:0; border-bottom:3px inset #000000">
&lt;span id=&quot;top&quot;&gt;&lt;/span&gt;
&lt;div style=&quot;padding:0;margin:0; border-bottom:3px inset #000000&quot;&gt;
{|  
{|  
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
| [[Image:uc_small_logo.gif | MPG UniCenter]] ||
Mini Servers Start and Stop batch file design notes  
Mini Servers Start and Stop batch file design notes  
|}
|}
</div>
&lt;/div&gt;
{| cellpadding="2"
{| cellpadding=&quot;2&quot;
|
|
__TOC__
__TOC__
Line 45: Line 46:


Required information port and PID are easily accessible. It is possible to use batch file  “tokens” this really is overkill hence use a pipe with find, makes the code a little easier to read for example:
Required information port and PID are easily accessible. It is possible to use batch file  “tokens” this really is overkill hence use a pipe with find, makes the code a little easier to read for example:
<pre>
&lt;pre&gt;
rem ## It exists is it running
rem ## It exists is it running
SET /P pid=<udrive\usr\local\apache2\logs\httpd.pid
SET /P pid=&lt;udrive\usr\local\apache2\logs\httpd.pid
netstat -anop tcp | FIND /I " %pid%" >NUL
netstat -anop tcp | FIND /I &quot; %pid%&quot; &gt;NUL
IF ERRORLEVEL 1 goto :NOTRUNNING
IF ERRORLEVEL 1 goto :NOTRUNNING
IF ERRORLEVEL 0 goto :RUNNING
IF ERRORLEVEL 0 goto :RUNNING
</pre>
&lt;/pre&gt;
'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
=== Kill process ===
=== Kill process ===
322

edits

Navigation menu