cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Service Console

mangar
Star Contributor
Star Contributor
I have installed Alfresco as a service on windows and everything is fine… Except, If you log onto the admin console, the CMD box is there just like if you started it from the command line. What's worse is that if you close the window, it stops Alfresco!  Defeats the point of a service don't you think?

Is there a way around this? 

Also, is there a was to get ALL loging information to go to a file instead of the console. I tried this in my log4j.properites:

# All outputs currently set to be a ConsoleAppender.
log4j.appender.Console=org.apache.log4j.DailyRollingFileAppender
log4j.appender.Console.File=D:/Alfresco/Console.log
log4j.appender.Console.layout=org.apache.log4j.PatternLayout

but that only is catching errors.

Thank you for any help
2 REPLIES 2

ivan_plestina
Champ in-the-making
Champ in-the-making
I believe you setup service in the wrong way. There is a good new article on wiki how to do this and you can also find a guide on my blog that includes screenshots on how to setup this.

mangar
Star Contributor
Star Contributor
Ivan, you were half right!  I could not get the service up from your blog instructions. I could not get the classpath to work, and when I did, it broke tomcat and other things. no matter.  I reinstalled using these instructions http://forums.alfresco.com/en/viewtopic.php?f=8&t=27723

The key was your edit dialog you showed using:
C:\Alfresco\tomcat\bin\tomcat6w.exe //ES//alfresco

if I then redirected the stdout and stderr to logfiles, no console came up! Problem solved.

Thank you