NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: RayA on February 07, 2012, 08:48:43 PM

Title: WebServer ReStart
Post by: RayA on February 07, 2012, 08:48:43 PM
Anyone have any idea if its possible to restart a NetTalk web server from a command issued from a server page.  Any idea ... anybody!

Title: Re: WebServer ReStart
Post by: Bruce on February 07, 2012, 09:51:41 PM
While I'm not 100% sure I understand what you are asking,
if you have GPF Reporter in the app (set to quietly restart on a GPF) and you sent some command to the server that specifically caused it to GPF
Peek(0,x#)
will do it
then the server will restart.

But given that I have no idea who you want it to restart, or where you are calling it from, I've no idea if this solution is appropriate. I certainly wouln't be putting it into my server.

cheers
Bruce
Title: Re: WebServer ReStart
Post by: kevin plummer on February 07, 2012, 11:14:14 PM
Sure - just add Chain(Command(0)) as server side code. So you could stick this under a button or send a para to a web page to invoke this code.
Title: Re: WebServer ReStart
Post by: RayA on February 07, 2012, 11:54:19 PM
Bruce,

Lets say I access my server from a remote location and I make changes to my server config and I would want to restart the server to make those changes active.  The restart would have to be only accessed from a secure admin page. 
Title: Re: WebServer ReStart
Post by: Bruce on February 08, 2012, 02:37:38 AM
Kevin's way sounds good to me.
Title: Re: WebServer ReStart
Post by: RayA on February 08, 2012, 06:15:48 AM
Thanks Bruce and Kevin ...............

 :)