S
Sam
Service properties
------------------
Log On As: LocalSystem
Logon account has full admin privileges.
OnStart() routine
-----------------
{
EventLog->WriteEntry ("Commencing..."); .... A
Spawn1()
Spawn2()
EventLog->WriteEntry ("Completing..."); .... B
}
In Automatic mode
-----------------
Service takes 1 min 34 sec to start (Time from A to B as recorded in
the Event Viewer). Service Controller Manager complains @ 1 min 30 sec
that "The xxxxx service hung on starting", but the service does start
up eventually and all is well.
In Manual startup mode
----------------------
Service starts in 4 seconds
Details
-------
Spawn1() starts a managed remoting server
Spawn2() starts a process inside a real time kernel (RTX). The kernel
itself starts "on demand", and is a manual service. I've listed this
kernel as a dependency for my service.
Question
--------
1. How do I debug this and reduce the time in Automatic Startup mode?
2. Why doesnt the SCM throw an exception even though my service
violates the 30 second OnStart rule?
Thank you.
Sam
------------------
Log On As: LocalSystem
Logon account has full admin privileges.
OnStart() routine
-----------------
{
EventLog->WriteEntry ("Commencing..."); .... A
Spawn1()
Spawn2()
EventLog->WriteEntry ("Completing..."); .... B
}
In Automatic mode
-----------------
Service takes 1 min 34 sec to start (Time from A to B as recorded in
the Event Viewer). Service Controller Manager complains @ 1 min 30 sec
that "The xxxxx service hung on starting", but the service does start
up eventually and all is well.
In Manual startup mode
----------------------
Service starts in 4 seconds
Details
-------
Spawn1() starts a managed remoting server
Spawn2() starts a process inside a real time kernel (RTX). The kernel
itself starts "on demand", and is a manual service. I've listed this
kernel as a dependency for my service.
Question
--------
1. How do I debug this and reduce the time in Automatic Startup mode?
2. Why doesnt the SCM throw an exception even though my service
violates the 30 second OnStart rule?
Thank you.
Sam