summaryrefslogtreecommitdiffstats
path: root/www/orion-devel/files
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2002-03-28 15:16:50 +0000
committerznerd <znerd@FreeBSD.org>2002-03-28 15:16:50 +0000
commitaf6223385a87e5bbf5f0e99489c640c724cc270b (patch)
treec000c6e1812e79964eb5fdfc5c9eab07e4849627 /www/orion-devel/files
parentbbe72c3ad99f4c54efab09d170781a9dbc5e0deb (diff)
downloadFreeBSD-ports-af6223385a87e5bbf5f0e99489c640c724cc270b.zip
FreeBSD-ports-af6223385a87e5bbf5f0e99489c640c724cc270b.tar.gz
Synced control program and man page. Bumped PORTREVISION to 11.
Diffstat (limited to 'www/orion-devel/files')
-rw-r--r--www/orion-devel/files/daemonctl.c2
-rw-r--r--www/orion-devel/files/orionctl.157
2 files changed, 32 insertions, 27 deletions
diff --git a/www/orion-devel/files/daemonctl.c b/www/orion-devel/files/daemonctl.c
index d074f72..432cb52 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 67a7d29..a449a4f 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
OpenPOWER on IntegriCloud