2

I'm trying to run activemq as a service on my windows7 machine, service install properly, but it does not start as LocalSystem account. It works perfectly if I start it with logon property as my user. Unfortunately there is nothing in the log file ( it is actually not created if I start as LocalSystem). Binary msmq files are located under Program Files, can this be a problem too ?

Thanks for any advice,

Felice

Felice Pollano
  • 169
  • 1
  • 7
  • Working on the same problem right now. My guess is it has something to do with persistence. Are you using the default KahaDB configuration? – joshua.ewer Aug 10 '11 at 19:02

1 Answers1

1

Your issue is that the local system account doesn't have rights to create temp directories. So, if you want to use the local system account, you can explicitly set the java.io.tmpdir property in the wrapper conf to a location that the local system has rights to.

As an example, this is my dev setting (in %ACTIVEMQ_HOME%/bin/win32/wrapper.conf):

wrapper.java.additional.10=-Djava.io.tmpdir="%ACTIVEMQ_BASE%"/temp
joshua.ewer
  • 126
  • 4