Connexion
Applications Google
Menu principal
Post a Comment On:
IT Tidbits
"LifeRay - Init.d Script"
No comments yet. -
1 – 0 of 0
Example of my init.d LifeRay startup script (Debian).
#!/bin/bash# description: LifeRay Start|Stop|Restartexport PATHexport JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.20/export CLASSPATH=//usr/lib/jvm/java-6-sun-1.6.0.20/lib/tools.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/rt.jar:./export CATALINA_HOME=/usr/local/liferay/tomcat
start() { cd $CATALINA_HOME/bin sh startup.sh }
stop() { cd $CATALINA_HOME/bin sh shutdown.sh }
case "$1" instart) start ;;stop) stop ;;restart) stop start ;;*)echo "start|stop|restart"esac
I saved this into /etc/init.d/ as the name liferay, then updated the run levels.
update-rc.d liferay defaults
posted by Todd at
4:43 PM
on Oct 24, 2010
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
This blog does not allow anonymous comments.
Comment moderation has been enabled. All comments must be approved by the blog author.
Google Account
You will be asked to sign in after submitting your comment.
Please prove you're not a robot
"LifeRay - Init.d Script"
No comments yet. -