Hi there,
I put a thread on the NT4 forum yesterday but I thought I'd try here.
We have an application running on our NT Servers which runs as a service. The problem with this is that the service hangs frequently which requires a server reboot (don't ask why, it's a long story!). The application is critical to our service and occasionally this means that the servers have to be cold rebooted which isn't good.
My boss has asked me to create a batch file which will attempt to stop and restart the service, this probably isn't going to work but I need to do it anyway.
I came up with a net stop/start option using Atonce.exe but a bog standard user with no rights has no permissions to run it. What I'd like is this sort of thing:
If service is hanging try to stop it. If you are able to stop it then restart it and send a message to the user letting them know that they can try and start the application and if not possibly the option to shutdown the server cleanly. I have no idea where to start on this and bear in mind that this would have to be run as a user with no rights. Also, the script would have to point at one particular server for as little user intervention as possible.
Can anyone help????
Thanks a lot.
Molenski
As my bessie bud Kev always says - Get involved!!!
I put a thread on the NT4 forum yesterday but I thought I'd try here.
We have an application running on our NT Servers which runs as a service. The problem with this is that the service hangs frequently which requires a server reboot (don't ask why, it's a long story!). The application is critical to our service and occasionally this means that the servers have to be cold rebooted which isn't good.
My boss has asked me to create a batch file which will attempt to stop and restart the service, this probably isn't going to work but I need to do it anyway.
I came up with a net stop/start option using Atonce.exe but a bog standard user with no rights has no permissions to run it. What I'd like is this sort of thing:
If service is hanging try to stop it. If you are able to stop it then restart it and send a message to the user letting them know that they can try and start the application and if not possibly the option to shutdown the server cleanly. I have no idea where to start on this and bear in mind that this would have to be run as a user with no rights. Also, the script would have to point at one particular server for as little user intervention as possible.
Can anyone help????
Thanks a lot.
Molenski
As my bessie bud Kev always says - Get involved!!!