;;; process.mhtml: -*- Meta-HTML -*-  DESCRIPTIVE TEXT.

;;;  Copyright (c) 1996 Brian J. Fox
;;;  Author: Brian J. Fox (bfox@ai.mit.edu) Tue Jun 25 01:43:46 1996.
<set-var title="Process Management">
<include header.mhtml>

<when <get-var posted::action>>
  <when <match <get-var posted::action> "Restart">>
    <cgi-exec kill -HUP <get-var mhttpd::server-pid>>
    <message <b>The Server was Restarted</b>>
  </when>
  <redirect <get-var mhtml::url-to-dir>/>
</when>

<layout::page>
  <ptext>
    If you have made modifications to the server parameters, you will
    have to restart the server for them to take effect.  Click
    <b>Restart</b> to restart the server now, or <b>Cancel</b> to
    return to the main server menu.

    <center>
      <b>
      <form method=post action="<thisdoc>">
	<input type=submit name=action
	       value="Restart <get-var mhttpd::server-pid>">
	<input type=submit name=action value="Cancel">
      </form>
      </b>
    </center>
  </ptext>
</layout::page>

<include footer.mhtml>
