locked
What is a service run level?

    Question

  • > sc runlevel /?

    DESCRIPTION:
            Changes the lowest run level for a service.
            This setting is valid only for services of start type
            auto start, demand start and disabled and non plug and
            play (PNP) driver services. A service cannot have a
            lower run level setting than a service it depends on.
            A run level of 0 can be specified to delete
            the run level setting. If an invalid run level
            is supplied, then the change request will fail or
            the service will fail to start.

    USAGE:
            sc <server> runlevel [service name] [runlevel number]

    Friday, September 30, 2011 2:22 PM

Answers

  • On Fri, 30 Sep 2011 16:25:56 +0000, Drewfus wrote:

    "...it corresponds to the Startup Type value"

    You mean its like;

    sc config <service> start= *

    except that its numeric, and only for services and software drivers (no boot or system start)?

    Text: A run level of 0 can be specified to delete the run level setting.

    How can a service not have a startup type?

    Sorry, not enough caffeine yet this morning. The runlevel being referred to
    here is the priority level (Real time, High, Above Normal, Norl, Below
    Normal, Low - same as you see when right-clicking a task in task manager
    and selecting set priority.

    It determines the level of CPU resources assigned to the service. The value
    of 0 means just use whatever value the service is coded to use by default.

    Sorry for the confusion.


    Paul Adare
    MVP - Identity Lifecycle Manager
    http://www.identit.ca
    Avoid temporary variables and strange women.

    Friday, September 30, 2011 4:56 PM

All replies

  • On Fri, 30 Sep 2011 14:22:22 +0000, Drewfus wrote:

    sc runlevel /?

    DESCRIPTION:
    ??????? Changes the lowest run level for a service.
    ??????? This setting is valid only for services of start type
    ??????? auto start, demand start and disabled and non plug and
    ??????? play (PNP) driver services. A service cannot have a
    ??????? lower run level setting than a service it depends on.
    ??????? A run level of 0 can be specified to delete
    ??????? the run level setting. If an invalid run level
    ??????? is supplied, then the change request will fail or
    ??????? the service will fail to start.

    USAGE:
    ??????? sc <server> runlevel [service name] [runlevel number]

    This value, as the help text states, represents how, or if, the service
    will be started. If you look at the service in question in the Services
    console, it corresponds to the Startup Type value.


    Paul Adare
    MVP - Identity Lifecycle Manager
    http://www.identit.ca
    Swap read error.  You lose your mind.

    Friday, September 30, 2011 4:04 PM
  • "...it corresponds to the Startup Type value"

    You mean its like;

    > sc config <service> start= *

    except that its numeric, and only for services and software drivers (no boot or system start)?

    Text: A run level of 0 can be specified to delete the run level setting.

    How can a service not have a startup type?

     

     

    Friday, September 30, 2011 4:25 PM
  • On Fri, 30 Sep 2011 16:25:56 +0000, Drewfus wrote:

    "...it corresponds to the Startup Type value"

    You mean its like;

    sc config <service> start= *

    except that its numeric, and only for services and software drivers (no boot or system start)?

    Text: A run level of 0 can be specified to delete the run level setting.

    How can a service not have a startup type?

    Sorry, not enough caffeine yet this morning. The runlevel being referred to
    here is the priority level (Real time, High, Above Normal, Norl, Below
    Normal, Low - same as you see when right-clicking a task in task manager
    and selecting set priority.

    It determines the level of CPU resources assigned to the service. The value
    of 0 means just use whatever value the service is coded to use by default.

    Sorry for the confusion.


    Paul Adare
    MVP - Identity Lifecycle Manager
    http://www.identit.ca
    Avoid temporary variables and strange women.

    Friday, September 30, 2011 4:56 PM
  • Thanks Paul.

    To avoid confusion allround, would this be better?..

    SetPriority-----Sets the startup priority class of a service

     

    Regarding the command 'sc query type= driver', is it possible a filter could be added to enable enumeration of only hardware or software? Like this;

    > sc query type= driver enum= hard|soft

     


    • Edited by Drewfus Saturday, October 01, 2011 2:14 AM
    Saturday, October 01, 2011 12:31 AM
  • On Sat, 1 Oct 2011 00:31:43 +0000, Drewfus wrote:

    To avoid confusion allround, would this be better?..

    SetPriority-----Sets the startup priority class of a service

    ?

    Regarding the command 'sc query type= driver', is it possible a filter could be added to enable enumeration of only hardware or software? Like this;

    sc query type= driver enum= hard|soft

    It sounds like you think that I work for Microsoft, I don't, MVPs are
    volunteers.


    Paul Adare
    MVP - Identity Lifecycle Manager
    http://www.identit.ca
    APL is a write-only language.  -- Roy Keir

    Saturday, October 01, 2011 3:09 AM