diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-05-17 21:42:10 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-05-17 21:42:10 +0800 |
commit | c8d402cef96faaaff299762ef7371c84b04c1c72 (patch) | |
tree | 771854e3a56636424c88597ff405253efc8f401b /www/orion/files | |
parent | b1c9b7197df41a88e8b3187459a222791f1c89a6 (diff) | |
download | freebsd-ports-graphics-c8d402cef96faaaff299762ef7371c84b04c1c72.tar.gz freebsd-ports-graphics-c8d402cef96faaaff299762ef7371c84b04c1c72.tar.zst freebsd-ports-graphics-c8d402cef96faaaff299762ef7371c84b04c1c72.zip |
* Portrevision from 1 to 2 (version is still 1.4.5)
* Changed reference to linux-jdk1.2.2 into linux-jdk1.3.0 in the shell script,
since the port depends on linux-jdk1.3.0.
* Fixed a few typos and other issues in the shell script
* No longer installing a link from ${PREFIX}/orion -> ${PREFIX}/orion1.4.5
* Making all directories under ${PREFIX}/orion1.4.5 a+x
* Added one mirror site for the DISTFILE
* Renamed shell script from `orion.sh' to `orionctl' (similar to `apachectl')
* Installing the shell script in the ${PREFIX}/bin/ directory and symlinking
from ${PREFIX}/etc/rc.d/orion.sh to the former file, making sure that the
shell script is +x
* Including the shell script in ${FILESDIR} instead of downloading
PR: 27407
Submitted by: maintainer
Diffstat (limited to 'www/orion/files')
-rw-r--r-- | www/orion/files/orionctl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/www/orion/files/orionctl b/www/orion/files/orionctl new file mode 100644 index 00000000000..a8d258c3047 --- /dev/null +++ b/www/orion/files/orionctl @@ -0,0 +1,33 @@ +#!/bin/sh + +if [ "${LOCALBASE}a" = "a" ]; then + LOCALBASE=/usr/local +fi + +JAVA_HOME=${LOCALBASE}/linux-jdk1.2.2 +ORION_HOME=${LOCALBASE}/orion +LOG=${ORION_HOME}/log/orion.log +PID_FILE=/var/run/orion.pid + +case "$1" in + start) + if [ -r ${ORION_HOME}/orion.jar ]; then + rm -rf ${PID_FILE} + touch ${PID_FILE} + chown root:wheel ${PID_FILE} + chmod 600 ${PID_FILE} + echo -n ' orion' + ( cd ${ORION_HOME} && ${JAVA_HOME}/bin/java -jar orion.jar & echo $! > ${PID_FILE} ) > ${LOG} 2>&1 + fi + ;; + stop) + /bin/kill `cat ${PID_FILE}` + echo -n ' orion' + ;; + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac |