NetTalk Central

Author Topic: WebServer ReStart  (Read 2282 times)

RayA

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • My Web Site
    • Email
WebServer ReStart
« 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!


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: WebServer ReStart
« Reply #1 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

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: WebServer ReStart
« Reply #2 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.

RayA

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • My Web Site
    • Email
Re: WebServer ReStart
« Reply #3 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. 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: WebServer ReStart
« Reply #4 on: February 08, 2012, 02:37:38 AM »
Kevin's way sounds good to me.

RayA

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • My Web Site
    • Email
Re: WebServer ReStart
« Reply #5 on: February 08, 2012, 06:15:48 AM »
Thanks Bruce and Kevin ...............

 :)