NetTalk Central

Author Topic: Web Server Window  (Read 3066 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Web Server Window
« on: January 17, 2012, 03:02:50 AM »
Hi Guys,

What is the easiest or best way to prevent an administrator of closing the web server window on the server?

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Web Server Window
« Reply #1 on: January 17, 2012, 03:10:10 AM »
Hi Rupert,

Run it as a service.

Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Web Server Window
« Reply #2 on: January 17, 2012, 03:11:18 AM »
The real question is why would they? Presumably you'd have it running as a service, and if your IT staff are in the habit of stopping arbitrary services then I guess you have big problems anyway. Or more accurately, it's not your problem at all.

I find that a horse-whip across both eyeballs though does tend to encourage compliance.

cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: Web Server Window
« Reply #3 on: January 17, 2012, 03:37:39 AM »
Thanks Rene, Bruce :-)

Is it simply a matter of dropping SelfSevice into the app to run the web-sevice as a 'Windows service'?
Any cons?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Web Server Window
« Reply #4 on: January 17, 2012, 03:50:43 AM »
Not a lot to making a service;

a) use SelfService - read the docs so you understand what you are doing and how to do it.

b) I recommend using both WinEvent and MessageBox in the app as well. MessageBox traps any MESSAGE statements (and you set messagebox to time them out, and optionally log them for you). also WinEvent so the service closes smoothly when Windows closes and so on.

Cheers
Bruce