Re: Is there a way to control the serivce control manager?

From: Gordon Smith \(eMVP\) (Gordon.Smith_at_nospam.avnet.com)
Date: 09/02/04


Date: Thu, 2 Sep 2004 13:10:10 -0700

Mark K Vallevand wrote:
> Our XPe device has two personalities. There is one suite of software
> installed, but a switch on the device sets the personality. We'd
> like to start and run a different set of services depending on that
> switch. In one mode, we'd run just a simple service that serves
> TCP/IP socket connections. In the other mode, we'd run a full set of
> services: our services, IIS, DTC, web services, and other stuff.
>
> Is there a way to have a program (or service) run early enough to
> change the configuration of services? Can a service stop, start,
> change dependencies of other services, and expect that the service
> control manager will see the changes and do the right thing?

You can control services through SC.EXE.

-- 
Gordon Smith (eMVP)
-- Avnet Applied Computing Solutions


Relevant Pages

  • Is there a way to control the serivce control manager?
    ... Our XPe device has two personalities. ... start and run a different set of services depending on that switch. ...
    (microsoft.public.windowsxp.embedded)
  • Re: posix ps (was Re: Adding `pgrep and `pkill to /usr/bin)
    ... SM>Using an environment variable to switch ... SM>between radically different personalities is an appalling idea. ... utility output until you set LC_ALL=C, yet I have still to see a script ... SM>If multiple personalities is a desirable trait (and it's not clear that it ...
    (freebsd-arch)
  • Re: DeXter
    ... >> Huh? ... Nothing prevents you from doing that in Delphi 2005. ... >> easily develop in different personalities and switch between them. ...
    (borland.public.delphi.non-technical)
  • Re: posix ps (was Re: Adding `pgrep and `pkill to /usr/bin)
    ... I personally am not fond of commands which COMPLETELY ... >change their behavior based on environment variables. ... Using an environment variable to switch ... If multiple personalities is a desirable trait (and it's not clear that it ...
    (freebsd-arch)