AnsweredAssumed Answered

init.d startup for alfresco

Question asked by nlcom on Dec 3, 2007
Latest reply on Dec 3, 2007 by nlcom
Hello, I recently created a simple startup script for Alfresco which is:

#!/bin/sh
case "$1" in start)
echo "Starting Alfresco Community"
./opt/alfresco/alfresco.sh start || echo "Failed!" ;;
stop)
echo "Shutting down Alfresco Community"
./opt/alfresco/alfresco.sh stop ;;
esac

After adding the script I added it to the startup with:
update-rc.d alfresco.sh start 99 2 3 4 5 . stop 99 0 1 6 .

Now after rebooting, alfresco doesn't start i get a 404 error. (Tomcat starts fine and the java export is also set correctly)

My first thoughts were that the alf_data wasn't located properly so I editted the "/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties" file and changed "dir.root=./alf_data" into "dir.root=./opt/alfresco/alf_data"

Also this doesn't work it keeps giving me the 404 error that /alfresco/ has not been found!

When starting manually from the /opt/alfresco/alfresco.sh file it works fine and has no problems.

What could this be?

I figured out when copying the alf_data to the / (root) it will load Alfresco fine, but this a very dirty workaround.. so if anyone has any better solutions you're welcome!

Outcomes