diff options
author | James E. Housley <jeh@FreeBSD.org> | 2001-06-27 01:52:49 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2001-06-27 01:52:49 +0000 |
commit | 0f3936a1b01c810d9a2d984609a97e114b9a9240 (patch) | |
tree | 430c83fe257bbed6e91416589016a1656c30f04d | |
parent | 9c88402ebade25afc6f22a4095d374f6d7a18581 (diff) | |
download | ports-0f3936a1b01c810d9a2d984609a97e114b9a9240.tar.gz ports-0f3936a1b01c810d9a2d984609a97e114b9a9240.zip |
Deleteing. orion has been moved to www
PR: 28415
Notes
Notes:
svn path=/head/; revision=44486
-rw-r--r-- | java/orion/files/orionctl | 102 | ||||
-rw-r--r-- | java/orion/files/orionctl.1 | 96 |
2 files changed, 0 insertions, 198 deletions
diff --git a/java/orion/files/orionctl b/java/orion/files/orionctl deleted file mode 100644 index a238e9394301..000000000000 --- a/java/orion/files/orionctl +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/sh - -# Set some more variables -NAME=%%PORTNAME%% -VERSION=%%PORTVERSION%% -ORION_HOME=%%ORION_HOME%% -LOG=${ORION_HOME}/log/${NAME}.log -PID_FILE=/var/run/${NAME}.pid -JAR_FILE=${ORION_HOME}/${NAME}.jar -MYSELF=`basename $0` - -# Check if we're being run as a shell script or as an rc script -if [ ${MYSELF} = "%%RC_SCRIPT_NAME%%" ]; then - AS_RC_SCRIPT=yes -else - AS_RC_SCRIPT=no -fi - -# Check if the JAVA_HOME directory is defined, otherwise set it to the -# fallback default -if [ "${JAVA_HOME}a" = "a" ]; then - JAVA_HOME=%%JAVA_HOME%% -fi -JAVA_CMD=${JAVA_HOME}/bin/java - -case "$1" in - start) - # Make sure Orion is not started previously - if [ -e ${PID_FILE} ]; then - if [ "${AS_RC_SCRIPT}" = "yes" ]; then - echo "" - fi - echo "${NAME}: ERROR: Found Orion PID file at ${PID_FILE}. Orion is probably already running." - exit 1 - fi - - # Make sure the Orion directory does exist - if [ ! -d ${ORION_HOME} ]; then - if [ "${AS_RC_SCRIPT}" = "yes" ]; then - echo "" - fi - echo "${NAME}: ERROR: Unable to find Orion home directory at ${ORION_HOME}." - exit 2 - fi - - # Make sure the Orion JAR file exists - if [ ! -r ${JAR_FILE} ]; then - if [ "${AS_RC_SCRIPT}" = "yes" ]; then - echo "" - fi - echo "${NAME}: ERROR: Unable to find Orion JAR file at ${JAR_FILE}." - exit 3 - fi - - # Make sure the Java VM can be found - if [ ! -x ${JAVA_CMD} ]; then - if [ "${AS_RC_SCRIPT}" = "yes" ]; then - echo "" - fi - echo "${NAME}: ERROR: Unable to find Java VM at ${JAVA_HOME}." - exit 4 - fi - - # Create the process ID file - rm -f ${PID_FILE} - touch ${PID_FILE} - chown root:wheel ${PID_FILE} - chmod 600 ${PID_FILE} - - if [ "${AS_RC_SCRIPT}" = "yes" ]; then - echo -n " ${NAME}" - fi - ( cd ${ORION_HOME} && ${JAVA_CMD} -jar orion.jar & echo $! > ${PID_FILE} ) > ${LOG} 2>&1 - ;; - stop) - if [ ! -e ${PID_FILE} ]; then - - # If run as an rc script, die silently... - if [ "${AS_RC_SCRIPT}" = "yes" ]; then - exit 0 - - # ...otherwise complain - else - echo "${NAME}: ERROR: Unable to find Orion PID file at ${PID_FILE}. Orion is probably not running." - exit 16 - fi - else - if [ "${AS_RC_SCRIPT}" = "yes" ]; then - echo -n " ${NAME}" - fi - /bin/kill `cat ${PID_FILE}` - rm -f ${PID_FILE} - fi - - ;; - *) - echo "" - echo "Usage: ${MYSELF} { start | stop }" - echo "" - exit 64 - ;; -esac diff --git a/java/orion/files/orionctl.1 b/java/orion/files/orionctl.1 deleted file mode 100644 index ed82a8ea30ff..000000000000 --- a/java/orion/files/orionctl.1 +++ /dev/null @@ -1,96 +0,0 @@ -.Dd May 26, 2001 -.Dt ORIONCTL 1 -.Os FreeBSD -.Sh NAME -.Nm orionctl -.Nd Orion server control interface -.Sh SYNOPSIS -.Nm -.Op Ar start | Ar stop -.Sh DESCRIPTION -The -.Nm -shell script provides an interface to the Orion application server. -.Pp -This script has 2 modes of operation, One is -.Em shell script mode -and the other is -.Em rc script mode . -If run as -.Nm -shell script mode is used, otherwise rc script mode is used. Shell script mode -assumes that the script is used as a normal shell script, while rc script mode -assumes the script is used to start or stop Orion at boot time. -.Pp -The script expects exactly one argument, either -.Ar start -or -.Ar stop . -If more than one argument is given, then all arguments but the first are -ignored. -.Bl -tag -width indent -.It Ar start -Start Orion, if it is not already running. The ID of the started process will -be saved in a PID file. -.It Ar stop -Stop Orion, if it is actually running. The process with the ID stored in -the PID file will be killed. -.El -.Sh ERRORS -The following error conditions are detected. They will be checked in the -specified order. In every case where an error message is printed it will be -prepended by the name of the script -.Em ( basename $0 ) . -.Pp -If no argument is passed, or if an argument other than -.Ar start -or -.Ar stop -is passed as the first argument, then a simple help message is printed and the -script is exited with error code 64. -.Pp -In -.Em rc script mode -a newline will be printed before any error message. -.Pp -When using the argument -.Ar start -the following errors conditions can be triggered: -.Bl -tag -width indent -.It Em The Orion PID file already exists. -Orion is probably already running. Prints an error message and exits the -script with error code 1. -.It Em Orion home directory cannot be found -Prints an error message and exits the script with error code 2. -.It Em Orion JAR file cannot be found -Prints an error message and exits the script with error code 3. -.It Em Java VM cannot be found -Prints an error message and exits the script with error code 4. -.El -.Pp -When using the argument -.Ar stop -the following error condition can be triggered: -.Bl -tag -width indent -.It Em The Orion PID file cannot be found -Orion is probably not running. Prints an error message and exits the script -with error code 16. -.El -.Sh FILES -.Bl -tag -width -indent -.It Pa /var/run/orion.pid -The Orion PID file that is used to store the process ID of the currently -running Orion process in. It is deleted as soon as Orion is stopped and -recreated when Orion is started. It should never be writable for anyone but -.Em root , -.It Pa %%PREFIX%%/etc/rc.d/orion.sh -A symlink to the -.Nm -script. This causes Orion to be started at boot time. When called from this -location the -.Nm -script will use -.Em rc script mode . -.El -.Sh AUTHORS -.An Ernst de Haan Aq ernst@jollem.com |