Service console shows that my service depends on Message Queue. However, my
service starts before MSMQ. In event log, my service and MSMQ all logged as
start successfully.
This behavior is consistent in my 2 XP workstations, 2 Win2003 servers.
Don't know why. (I remembered it worked a couple of days ago. Now it no
longer works.)
I have done the same thing. Restarting the machine fixes the problem.
I think the dependencies are pulled out of the registry on startup
only. However when you view properties on a given service it will
report the dependency that you assigned. When I restarted the service
was started correctly. Also, restarting the MSMQ service will show
your service as a dependency and will stop and start the service
appropriately.
-PKS
jason schrieb:
<patr...@gmail.com> wrote in message
news:1155657807....@75g2000cwc.googlegroups.com...
Dejan
--
Download QueueExplorer, managing utility for MSMQ
http://www.cogin.com
Speculating wildly perhaps some other program that runs during system
initialisation is 'touching' the MSMQ service causing it to be initiated
before the SCM would otherwise start it? Although I would have imagined
that 'touching' a service would involve the SCM so dependencies could still
be enforced.
One thing you might do to diagnose this further is to adjust your Local
Security Policy to turn on Audit Process Tracking. With that turned on,
you'll see a Security Event Log entry for every process create. The Creator
Process Id for that entry will tell you what process actually started the
service (most likely the SCM - services.exe) but you'll also see what other
processes were initiated just before the MSMQ service (mqsvc.exe) was
initiated. That might give you a clue.