aboutsummaryrefslogtreecommitdiff
path: root/www/orion-devel
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-03-28 15:16:50 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-03-28 15:16:50 +0000
commit84376e4616a4d261f39bed5bd3fef1e289ccbb8b (patch)
tree1685dae099de836b1028541f23b1e429b593561c /www/orion-devel
parent5a115ef5da70c3230322e96e00bf8e46d869e88f (diff)
downloadports-84376e4616a4d261f39bed5bd3fef1e289ccbb8b.tar.gz
ports-84376e4616a4d261f39bed5bd3fef1e289ccbb8b.zip
Notes
Diffstat (limited to 'www/orion-devel')
-rw-r--r--www/orion-devel/Makefile2
-rw-r--r--www/orion-devel/files/daemonctl.c2
-rw-r--r--www/orion-devel/files/orionctl.157
3 files changed, 33 insertions, 28 deletions
diff --git a/www/orion-devel/Makefile b/www/orion-devel/Makefile
index 6a7df32286df..db8acaaf5720 100644
--- a/www/orion-devel/Makefile
+++ b/www/orion-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= orion
PORTVERSION= 1.5.2
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= www java
MASTER_SITES= http://www.orionserver.com/distributions/ \
http://www.atlassian.com/software/orion/downloads/ \
diff --git a/www/orion-devel/files/daemonctl.c b/www/orion-devel/files/daemonctl.c
index d074f7213a3b..432cb5240d43 100644
--- a/www/orion-devel/files/daemonctl.c
+++ b/www/orion-devel/files/daemonctl.c
@@ -61,7 +61,7 @@ int main(int argc, char *argv[]) {
char *argument;
/* Parse the arguments */
- if (argc != 2) {
+ if (argc < 2) {
printUsage();
return 0;
}
diff --git a/www/orion-devel/files/orionctl.1 b/www/orion-devel/files/orionctl.1
index 67a7d29963cc..a449a4f30956 100644
--- a/www/orion-devel/files/orionctl.1
+++ b/www/orion-devel/files/orionctl.1
@@ -10,9 +10,9 @@
.Sh DESCRIPTION
The
.Nm
-shell script provides an interface to the %%APP_TITLE%% application server.
+program provides an interface to the %%APP_TITLE%% application server.
.Pp
-The script expects exactly one argument, either
+The program expects exactly one argument, either
.Ar start ,
.Ar restart
or
@@ -23,48 +23,53 @@ ignored.
.It Ar start
Start %%APP_TITLE%%, if it is not already running.
.It Ar restart
-Restart %%APP_TITLE%%. If it is already running, then it will be stopped and then
-started right after that. Otherwise it will just be started up.
+Restart %%APP_TITLE%%. If it is already running, then it will be stopped and
+then started right after that. Otherwise it will just be started up.
.It Ar stop
Stop %%APP_TITLE%%, if it is actually running.
.El
.Sh ERRORS
The following error conditions are detected. They will be checked in the
-specified order. In each case where an error message is printed, the name of
-the script
-.Em ( basename $0 )
-will be prepended.
+specified order. In each case an error message is printed with the name of the
+control program prepended.
.Pp
-If no argument is passed, or if an argument other than
+If no argument is passed, then a simple help message is printed and the
+program exists with error code 0.
+.Pp
+If at least one argument is passed, but it is different from
.Ar start ,
.Ar restart
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.
+then the help message is printed as well, and the program exits with error
+code 1.
.Pp
-Other than that, the following errors conditions are defined:
+The following errors conditions are defined:
.Bl -tag -width indent
-.It Em %%APP_TITLE%% seems to be running already.
-Prints an error message and exits the script with error code 1.
-.It Em %%APP_TITLE%% home directory cannot be found
-Prints an error message and exits the script with error code 2.
-.It Em %%APP_TITLE%% script 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.
+.It Em Illegal program argument (error code 1)
+.It Em PID file not found (error code 2)
+.It Em PID file too large (error code 3)
+.It Em PID file contains illegal character (error code 4)
+.It Em Kill of process failed (error code 5)
+.It Em %%APP_TITLE%% is already running (error code 6)
+.It Em %%APP_TITLE%% is not running (error code 7)
+.It Em Unable to chdir to the %%APP_TITLE%% home directory (error code 8)
+.It Em Unable to open the stdout log file (error code 9)
+.It Em Unable to open the stderr log file (error code 9)
+.It Em Unable to start %%APP_TITLE%% (error code 9)
.El
.Sh FILES
.Bl -tag -width -indent
-.It Pa /var/run/orion.pid
-The %%APP_TITLE%% PID file that is used to store the process
-ID of the currently running process in. It is emptied as soon as the server is
-stopped and filled with the process ID when it is started. It should never be writable for anyone but
+.It Pa %%PID_FILE%%
+The %%APP_TITLE%% PID file that is used to store the process ID of the
+currently running process in. It is emptied as soon as the server is stopped
+and filled with the process ID when it is started. It should never be writable
+for anyone but
.Em www ,
-.It Pa %%PREFIX%%/etc/rc.d/%%STARTUP_ORDER%%.orion.sh
+.It Pa %%STARTUP_SCRIPT%%
A script that starts the
.Nm
-script. It starts %%APP_TITLE%% at startup time.
+program. It is used to start %%APP_TITLE%% at startup time.
.El
.Sh AUTHORS
.An Ernst de Haan Aq znerd@FreeBSD.org