08-10-2009 04:02 PM
08-11-2009 12:24 AM
#!/bin/bash
#
# Startup script for the …
#
# Source function library.
. /etc/init.d/functions
PATH=/usr/local/bin:/sbin:/usr/sbin:$PATH
export PATH
# See how we were called.
case "$1" in
start)
echo -n "Starting Alfresco: "
su - alfresco -c '/opt/Alfresco3/alf_start.sh > /dev/null 2>&1 &'
;;
stop)
;;
restart)
$0 stop
$0 start
;;
reload)
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0
Start your DB before… perhaps set iptables rules… The redirection "> /dev/null 2>&1 &'" is used to not wait on the start of Alfresco to show the login page.08-11-2009 06:51 AM
08-21-2009 05:03 PM
03-11-2010 02:38 AM
05-11-2010 05:58 AM
#!/bin/bash
#
# Startup script for Alfresco
#
# Source function library.
. /etc/init.d/functions
PATH=/usr/local/bin:/sbin:/usr/sbin:$PATH
export PATH
# See how we were called.
case "$1" in
start)
echo -n "Starting Alfresco: "
su - alfresco -c '/opt/Alfresco/alf_start.sh > /dev/null 2>&1 &'
;;
stop)
echo -n "Stopping Alfresco…. "
su - alfresco -c '/opt/Alfresco/alf_stop.sh'
;;
restart)
$0 stop
$0 start
;;
reload)
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0
chmod +x /etc/rc.d/init.d/alfresco
ln -s /etc/rc.d/init.d/alfresco /etc/rc.d/rc5.d/S98alfresco
ln -s /etc/rc.d/init.d/alfresco /etc/rc.d/rc3.d/S98alfresco
ln -s /etc/rc.d/init.d/alfresco /etc/rc.d/rc0.d/K02alfresco
ln -s /etc/rc.d/init.d/alfresco /etc/rc.d/rc6.d/K02alfresco
ln -s /etc/rc.d/init.d/alfresco /etc/rc.d/rc1.d/K02alfresco
05-11-2010 11:53 PM
su - alfresco -c '/opt/Alfresco/alf_stop.sh'
Need to add a sleep or like this :sudo -H -u alfresco sh $CATALINA_HOME/bin/shutdown.sh
killall -w -u alfresco
05-12-2010 02:45 AM
…
case "$1" in
start)
touch /var/lock/subsys/alfresco
echo -n "Starting Alfresco: "
…
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.