Last active
February 10, 2017 14:46
-
-
Save jaylandro/37b0c306d98a252fe89cab4cac30b232 to your computer and use it in GitHub Desktop.
Liferay 6.2 daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export CATALINA_HOME=/opt/liferay-portal-6.2-ee-sp5/tomcat-7.0.42 | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin | |
start() { | |
sh $CATALINA_HOME/bin/startup.sh | |
} | |
stop() { | |
sh $CATALINA_HOME/bin/shutdown.sh | |
} | |
case $1 in | |
start|stop) $1;; | |
restart) stop; start;; | |
*) echo "Run as $0 <start|stop|restart>"; exit 1;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment