[Samba] managing unix services remotely from mmc on windows

Stefan Morrell tromador at tromador.com
Thu Jan 12 17:48:40 GMT 2006


Hello List!

May I humbly submit my apologies if this has been done to death already and if
so, please consider this a feature request for a *searchable* mailing list
archive ;)

I'm loving the idea of being able to use one of my windows servers to start
and stop the *nix services via the computer management console. Makes life 
easier for the less *nix savvy members of my team.

I've linked my script into svcctl and it appears in the service list on the 
windows server, showing as started.

When I try to stop the service I get the following error:

Could not stop the <blah whatever> service on SERVER
The service did not return an error. This could be an internal Windows error or
an internal service error.
If the problem persists, contact your system administrator,

Now I can see on SERVER that the service has correctly been stopped, it's just
that the windows server doesn't realise, though oddly enough, I can then do
a "restart" via the mmc and that brings the service back up fine.

I'm guessing I need to somehow feed a return code of some kind from the 
start/stop script in my init.d through samba to the windows server and that's
the bit I'm missing.

Can anyone advise as to the fundamental step I've clearly missed?

Thanks

Stef
-- 
Quidquid latine dictum sit, altum viditur.


More information about the samba mailing list