restart windows service

Craig White craigwhite at azapple.com
Mon Jul 10 16:55:17 UTC 2006


On Mon, 2006-07-10 at 14:24 +0100, Tom Brown wrote:
> Hi
> 
> I want/need to be able to restart a windows service from a linux box and 
> i'm thinking about perhaps trying to use expect. I would imagine that i 
> could test the service and then in the event of failure telnet in and 
> issue a 'service foo restart' command.
> 
> Is this possible or am i looking at the wrong way to try to achieve this?
----
depends upon version of samba and whether systems are joined to domain,
etc.

net rpc shutdown SERVER-NAME [-r] [-U USER-NAME]

Craig




More information about the users mailing list