general windows services question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ross

    general windows services question

    When you hit the OnStart() method, the windows service manager waits
    30 seconds for that method to return.

    What happens when that method doesn't return, besides receiving the
    message "The service did not report an error"? Would the manager
    attempt to shut down the service? Does it depend on the what the
    service was written in?

    -Ross
  • Jeff Winn

    #2
    Re: general windows services question

    When you hit the OnStart() method, the windows service manager waits
    30 seconds for that method to return.
    >
    What happens when that method doesn't return, besides receiving the
    message "The service did not report an error"? Would the manager
    attempt to shut down the service?
    If the service doesn't start quickly enough typically the Service Control
    Manager (SCM) will just kill the service, including if you're in the middle
    of debugging the startup code. Can't remember if an error gets reported in
    the error log on the machine, but I imagine that it would.
    Does it depend on the what the service was written in?
    Nope, that all is handled by the SCM.


    "Ross" <rosshinkley@gm ail.comwrote in message
    news:e5d5ef98-82f7-448a-a8ab-abeb3d82b362@b1 g2000hsg.google groups.com...
    When you hit the OnStart() method, the windows service manager waits
    30 seconds for that method to return.
    >
    What happens when that method doesn't return, besides receiving the
    message "The service did not report an error"? Would the manager
    attempt to shut down the service? Does it depend on the what the
    service was written in?
    >
    -Ross

    Comment

    Working...