Stefan Morrell
2006-Jan-12 17:55 UTC
[Samba] managing unix services remotely from mmc on windows
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.
Gerald (Jerry) Carter
2006-Jan-26 16:46 UTC
[Samba] managing unix services remotely from mmc on windows
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan Morrell wrote:> 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.It's the exit code from the init script then. Smbd expects a return code of 0 to indicate that the stop command completely successfully. cheers, jerry ====================================================================I live in a Reply-to-All world ----------------------- Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD1i6ZIR7qMdg1EfYRAhUBAJ9GQLk2U9kr+OipbfTQVmQM9M4GiwCgvcCn Pu4N8cYkOSAmS6Ghdr94h4c=Iqtf -----END PGP SIGNATURE-----