summaryrefslogtreecommitdiffstats
path: root/www/orion-devel/files/orionctl.1
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-06-12 10:20:48 +0000
committersobomax <sobomax@FreeBSD.org>2001-06-12 10:20:48 +0000
commit7df44bef7040afda3718945dced392f433f24133 (patch)
treebf864bd7934cb50425ae7cf7db5c5fd3bff47b26 /www/orion-devel/files/orionctl.1
parenta22dd8367e09643fa132f6d6535979663265fe9e (diff)
downloadFreeBSD-ports-7df44bef7040afda3718945dced392f433f24133.zip
FreeBSD-ports-7df44bef7040afda3718945dced392f433f24133.tar.gz
Several fixes and improvements:
- Now installing a man page for 'orionctl'. - Correctly stopping Orion and removing the PID file on deinstall. - Verbose install (removed the @-signs). - Changes the exit codes in the script (and documented them in the man page) - Extended the documentation in pkg-descr. PR: 27748 Submitted by: maintainer
Diffstat (limited to 'www/orion-devel/files/orionctl.1')
-rw-r--r--www/orion-devel/files/orionctl.196
1 files changed, 96 insertions, 0 deletions
diff --git a/www/orion-devel/files/orionctl.1 b/www/orion-devel/files/orionctl.1
new file mode 100644
index 0000000..ed82a8e
--- /dev/null
+++ b/www/orion-devel/files/orionctl.1
@@ -0,0 +1,96 @@
+.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
OpenPOWER on IntegriCloud