trinidad_init_services 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +5 -0
- data/Gemfile +3 -0
- data/History.txt +6 -0
- data/README.md +95 -0
- data/Rakefile +9 -58
- data/bin/trinidad_init_service +3 -4
- data/init.d/trinidad.erb +33 -12
- data/jsvc-unix-src/CHANGES.txt +62 -0
- data/jsvc-unix-src/INSTALL.txt +81 -0
- data/jsvc-unix-src/Makedefs.in +32 -0
- data/jsvc-unix-src/Makefile.in +42 -0
- data/jsvc-unix-src/configure +4417 -0
- data/jsvc-unix-src/configure.in +141 -0
- data/jsvc-unix-src/man/README +20 -0
- data/jsvc-unix-src/man/fetch.sh +36 -0
- data/jsvc-unix-src/man/jsvc.1.xml +214 -0
- data/jsvc-unix-src/native/.indent.pro +7 -0
- data/jsvc-unix-src/native/Makefile.in +46 -0
- data/jsvc-unix-src/native/arguments.c +476 -0
- data/jsvc-unix-src/native/arguments.h +94 -0
- data/jsvc-unix-src/native/debug.c +87 -0
- data/jsvc-unix-src/native/debug.h +65 -0
- data/jsvc-unix-src/native/dso-dlfcn.c +62 -0
- data/jsvc-unix-src/native/dso-dyld.c +153 -0
- data/jsvc-unix-src/native/dso.h +38 -0
- data/jsvc-unix-src/native/help.c +106 -0
- data/jsvc-unix-src/native/help.h +24 -0
- data/jsvc-unix-src/native/home.c +265 -0
- data/jsvc-unix-src/native/home.h +47 -0
- data/jsvc-unix-src/native/java.c +608 -0
- data/jsvc-unix-src/native/java.h +35 -0
- data/jsvc-unix-src/native/jsvc-unix.c +1267 -0
- data/jsvc-unix-src/native/jsvc.h +55 -0
- data/jsvc-unix-src/native/location.c +151 -0
- data/jsvc-unix-src/native/location.h +29 -0
- data/jsvc-unix-src/native/locks.c +52 -0
- data/jsvc-unix-src/native/locks.h +40 -0
- data/jsvc-unix-src/native/replace.c +121 -0
- data/jsvc-unix-src/native/replace.h +39 -0
- data/jsvc-unix-src/native/signals.c +105 -0
- data/jsvc-unix-src/native/signals.h +34 -0
- data/jsvc-unix-src/native/version.h +63 -0
- data/jsvc-unix-src/support/apfunctions.m4 +110 -0
- data/jsvc-unix-src/support/apjava.m4 +94 -0
- data/jsvc-unix-src/support/apsupport.m4 +155 -0
- data/jsvc-unix-src/support/buildconf.sh +33 -0
- data/jsvc-unix-src/support/config.guess +1371 -0
- data/jsvc-unix-src/support/config.sub +1760 -0
- data/jsvc-unix-src/support/install.sh +128 -0
- data/jsvc-unix-src/support/mkdist.sh +104 -0
- data/lib/trinidad/daemon.rb +31 -0
- data/lib/trinidad_init_services.rb +2 -30
- data/lib/trinidad_init_services/configuration.rb +91 -14
- data/lib/trinidad_init_services/version.rb +5 -0
- data/spec/spec_helper.rb +5 -6
- data/spec/trinidad_daemon_spec.rb +0 -1
- data/spec/trinidad_init_services/configuration_spec.rb +34 -1
- data/trinidad_init_services.gemspec +14 -51
- metadata +146 -87
- data/README +0 -63
- data/trinidad-libs/jsvc_linux +0 -0
@@ -0,0 +1,141 @@
|
|
1
|
+
dnl
|
2
|
+
dnl Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
+
dnl contributor license agreements. See the NOTICE file distributed with
|
4
|
+
dnl this work for additional information regarding copyright ownership.
|
5
|
+
dnl The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
+
dnl (the "License"); you may not use this file except in compliance with
|
7
|
+
dnl the License. You may obtain a copy of the License at
|
8
|
+
dnl
|
9
|
+
dnl http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
dnl
|
11
|
+
dnl Unless required by applicable law or agreed to in writing, software
|
12
|
+
dnl distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
dnl See the License for the specific language governing permissions and
|
15
|
+
dnl limitations under the License.
|
16
|
+
dnl
|
17
|
+
|
18
|
+
dnl -------------------------------------------------------------------------
|
19
|
+
dnl Author Pier Fumagalli <mailto:pier.fumagalli@eng.sun.com>
|
20
|
+
dnl Version $Id: configure.in 1292683 2012-02-23 07:37:10Z mturk $
|
21
|
+
dnl -------------------------------------------------------------------------
|
22
|
+
|
23
|
+
dnl -------------------------------------------------------------------------
|
24
|
+
dnl Initialize AutoConf
|
25
|
+
dnl -------------------------------------------------------------------------
|
26
|
+
|
27
|
+
AC_PREREQ(2.53)
|
28
|
+
|
29
|
+
sinclude(./support/apfunctions.m4)dnl
|
30
|
+
sinclude(./support/apjava.m4)dnl
|
31
|
+
sinclude(./support/apsupport.m4)dnl
|
32
|
+
AC_INIT(configure.in)
|
33
|
+
AC_CONFIG_AUX_DIR(./support)
|
34
|
+
|
35
|
+
dnl Generate ./config.nice for reproducing runs of configure
|
36
|
+
dnl
|
37
|
+
AP_CONFIG_NICE(config.nice)
|
38
|
+
|
39
|
+
dnl -------------------------------------------------------------------------
|
40
|
+
dnl Check current host (forget about cross compilation) and validate it
|
41
|
+
dnl against the cache (fail if the cache differs)
|
42
|
+
dnl -------------------------------------------------------------------------
|
43
|
+
AP_MSG_HEADER([Current host])
|
44
|
+
AC_CANONICAL_HOST()
|
45
|
+
AP_CANONICAL_HOST_CHECK()
|
46
|
+
|
47
|
+
dnl -------------------------------------------------------------------------
|
48
|
+
dnl Check C environment
|
49
|
+
dnl -------------------------------------------------------------------------
|
50
|
+
AP_MSG_HEADER([C-Language compilation tools])
|
51
|
+
AC_PROG_CC()
|
52
|
+
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
53
|
+
AC_CHECK_TOOL(STRIP, strip, :)
|
54
|
+
|
55
|
+
dnl -------------------------------------------------------------------------
|
56
|
+
dnl Check if this host is supported
|
57
|
+
dnl -------------------------------------------------------------------------
|
58
|
+
AP_MSG_HEADER([Host support])
|
59
|
+
AP_SUPPORTED_HOST()
|
60
|
+
if test "$supported_os" = "darwin"
|
61
|
+
then
|
62
|
+
if test -z "$JAVA_HOME" -a -d /System/Library/Frameworks/JavaVM.framework/Home; then
|
63
|
+
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
|
64
|
+
fi
|
65
|
+
|
66
|
+
_prevdir=`/bin/pwd`
|
67
|
+
if test -n "$JAVA_HOME" -a -d "$JAVA_HOME/include"; then
|
68
|
+
cd "$JAVA_HOME/include"
|
69
|
+
elif test -n "$JAVA_HOME" -a -d "$JAVA_HOME/../Headers"; then
|
70
|
+
cd "$JAVA_HOME/../Headers"
|
71
|
+
else
|
72
|
+
cd /System/Library/Frameworks/JavaVM.framework/Headers
|
73
|
+
fi
|
74
|
+
INCLUDES="$INCLUDES -I`/bin/pwd -P`"
|
75
|
+
cd $_prevdir
|
76
|
+
unset _prevdir
|
77
|
+
fi
|
78
|
+
|
79
|
+
dnl -------------------------------------------------------------------------
|
80
|
+
dnl Check JAVA environment
|
81
|
+
dnl -------------------------------------------------------------------------
|
82
|
+
AP_MSG_HEADER([Java compilation tools])
|
83
|
+
AP_FIND_JAVA()
|
84
|
+
dnl MAC OS X does not used include but Headers
|
85
|
+
if test -d $JAVA_HOME/Headers
|
86
|
+
then
|
87
|
+
JAVA_INC=Headers
|
88
|
+
else
|
89
|
+
JAVA_INC=include
|
90
|
+
fi
|
91
|
+
AP_FIND_JAVA_OS()
|
92
|
+
if test -z "${JAVA_OS}"
|
93
|
+
then
|
94
|
+
AC_MSG_RESULT([jni_md.h found in $JAVA_HOME/$JAVA_INC])
|
95
|
+
INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/$JAVA_INC"
|
96
|
+
else
|
97
|
+
INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os"
|
98
|
+
fi
|
99
|
+
|
100
|
+
dnl -------------------------------------------------------------------------
|
101
|
+
dnl Add gcc specific CFLAGS.
|
102
|
+
dnl -------------------------------------------------------------------------
|
103
|
+
if test "$GCC" = "yes"
|
104
|
+
then
|
105
|
+
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
|
106
|
+
AC_MSG_RESULT([gcc flags added])
|
107
|
+
fi
|
108
|
+
dnl -------------------------------------------------------------------------
|
109
|
+
dnl Add gcc specific CFLAGS.
|
110
|
+
dnl -------------------------------------------------------------------------
|
111
|
+
if test -z "$LDCMD"
|
112
|
+
then
|
113
|
+
LDCMD="$CC"
|
114
|
+
fi
|
115
|
+
AC_SUBST(LDCMD)
|
116
|
+
if test "$supported_os" = "linux"
|
117
|
+
then
|
118
|
+
AC_CHECK_HEADER([sys/capability.h],
|
119
|
+
[CFLAGS="$CFLAGS -DHAVE_LIBCAP"],
|
120
|
+
AC_MSG_WARN([cannot find headers for libcap]))
|
121
|
+
fi
|
122
|
+
|
123
|
+
if test -z "$STRIPFLAGS"
|
124
|
+
then
|
125
|
+
STRIP="@: "
|
126
|
+
else
|
127
|
+
STRIP="$STRIP $STRIPFLAGS"
|
128
|
+
fi
|
129
|
+
|
130
|
+
AC_SUBST(INCLUDES)
|
131
|
+
dnl -------------------------------------------------------------------------
|
132
|
+
dnl Random programs we need to compile locally
|
133
|
+
dnl -------------------------------------------------------------------------
|
134
|
+
AP_MSG_HEADER([Writing output files])
|
135
|
+
AC_OUTPUT(Makefile Makedefs native/Makefile)
|
136
|
+
|
137
|
+
dnl -------------------------------------------------------------------------
|
138
|
+
dnl Done
|
139
|
+
dnl -------------------------------------------------------------------------
|
140
|
+
AP_MSG_HEADER([All done])
|
141
|
+
AC_MSG_RESULT([Now you can issue "make"])
|
@@ -0,0 +1,20 @@
|
|
1
|
+
To build it use:
|
2
|
+
docbook2man jsvc.1.xml
|
3
|
+
|
4
|
+
If your docbook2man uses xalan and you are behind a firewall
|
5
|
+
Modify jsvc.1.xml as below:
|
6
|
+
+++
|
7
|
+
Index: jsvc.1.xml
|
8
|
+
===================================================================
|
9
|
+
--- jsvc.1.xml (revision 170004)
|
10
|
+
+++ jsvc.1.xml (working copy)
|
11
|
+
@@ -1,6 +1,6 @@
|
12
|
+
<?xml version="1.0" encoding="utf-8"?>
|
13
|
+
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
14
|
+
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
|
15
|
+
+ "docbookx.dtd">
|
16
|
+
<refentry id='jsvc1'>
|
17
|
+
<refmeta>
|
18
|
+
<refentrytitle>JSVC</refentrytitle>
|
19
|
+
+++
|
20
|
+
Use fetch.sh to get docbook files.
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
+
# contributor license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright ownership.
|
4
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
5
|
+
# (the "License"); you may not use this file except in compliance with
|
6
|
+
# the License. You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
mkdir -p ent
|
17
|
+
rm -f JSVC.1
|
18
|
+
while true
|
19
|
+
do
|
20
|
+
FILE=`docbook2man jsvc.1.xml 2>&1 | grep FileNotFoundException | awk -F FileNotFoundException: ' { print $2 } ' | awk ' { print $1 } '`
|
21
|
+
if [ -f JSVC.1 ]
|
22
|
+
then
|
23
|
+
break
|
24
|
+
fi
|
25
|
+
echo "FILE: $FILE"
|
26
|
+
file=`basename $FILE`
|
27
|
+
dir=`dirname $FILE`
|
28
|
+
man=`basename $dir`
|
29
|
+
echo "file: $file dir: $dir man: $man"
|
30
|
+
if [ "$man" = "ent" ]
|
31
|
+
then
|
32
|
+
(cd ent; wget http://www.oasis-open.org/docbook/xml/4.1.2/ent/$file)
|
33
|
+
else
|
34
|
+
wget http://www.oasis-open.org/docbook/xml/4.1.2/$file
|
35
|
+
fi
|
36
|
+
done
|
@@ -0,0 +1,214 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
19
|
+
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
|
20
|
+
<refentry id='jsvc1'>
|
21
|
+
<refmeta>
|
22
|
+
<refentrytitle>JSVC</refentrytitle>
|
23
|
+
<manvolnum>1</manvolnum>
|
24
|
+
<refmiscinfo class='date'>June 2011</refmiscinfo>
|
25
|
+
<refmiscinfo class='source'>Jsvc version 1.0.6</refmiscinfo>
|
26
|
+
<refmiscinfo class='manual'>Apache Commons Daemon project</refmiscinfo>
|
27
|
+
</refmeta>
|
28
|
+
<refnamediv id='name'>
|
29
|
+
<refname>jsvc</refname>
|
30
|
+
<refpurpose>application to launch java daemon</refpurpose>
|
31
|
+
</refnamediv>
|
32
|
+
<!-- body begins here -->
|
33
|
+
<refsynopsisdiv id='synopsis'>
|
34
|
+
<cmdsynopsis>
|
35
|
+
<command>jsvc</command>
|
36
|
+
<arg choice='opt'>-jvm <replaceable>JVM name</replaceable></arg>
|
37
|
+
<arg choice='opt'>-client <replaceable>client JVM</replaceable></arg>
|
38
|
+
<arg choice='opt'>-server <replaceable>server JVM</replaceable></arg>
|
39
|
+
<arg choice='opt'>-classpath <replaceable>path</replaceable></arg>
|
40
|
+
<arg choice='opt'>-cp <replaceable>path</replaceable></arg>
|
41
|
+
<arg choice='opt'>-java-home <replaceable>directory</replaceable></arg>
|
42
|
+
<arg choice='opt'>-version</arg>
|
43
|
+
<arg choice='opt'>-help</arg>
|
44
|
+
<arg choice='opt'>-?</arg>
|
45
|
+
<arg choice='opt'>-nodetach</arg>
|
46
|
+
<arg choice='opt'>-debug</arg>
|
47
|
+
<arg choice='opt'>-check</arg>
|
48
|
+
<arg choice='opt'>-user <replaceable>user</replaceable></arg>
|
49
|
+
<arg choice='opt'>-wait <replaceable>waittime</replaceable></arg>
|
50
|
+
<arg choice='opt'>-umask <replaceable>mask</replaceable></arg>
|
51
|
+
<arg choice='opt'>-stop</arg>
|
52
|
+
<arg choice='opt'>-verbose<replaceable>:class|gc|jni</replaceable></arg>
|
53
|
+
<arg choice='opt'>-outfile <replaceable>/full/path/to/file</replaceable></arg>
|
54
|
+
<arg choice='opt'>-errfile <replaceable>/full/path/to/file</replaceable></arg>
|
55
|
+
<arg choice='opt'>-pidfile <replaceable>/full/path/to/file</replaceable></arg>
|
56
|
+
<arg choice='opt'>-Dproperty=<replaceable>value</replaceable></arg>
|
57
|
+
<arg choice='opt'>-X<replaceable>option</replaceable></arg>
|
58
|
+
<!-- end of the new arguments -->
|
59
|
+
</cmdsynopsis>
|
60
|
+
</refsynopsisdiv>
|
61
|
+
<refsect1 id="description">
|
62
|
+
<title>DESCRIPTION</title>
|
63
|
+
<para><command>jsvc</command> executes <emphasis remap="I">classfile</emphasis>
|
64
|
+
that implements a Daemon interface.</para>
|
65
|
+
</refsect1>
|
66
|
+
|
67
|
+
<refsect1 id="options">
|
68
|
+
<title>OPTIONS</title>
|
69
|
+
|
70
|
+
<variablelist remap="TP">
|
71
|
+
<varlistentry>
|
72
|
+
<term><option>-jvm</option> JVM name</term>
|
73
|
+
<listitem>
|
74
|
+
<para>use a specific Java Virtual Machine.</para>
|
75
|
+
</listitem>
|
76
|
+
</varlistentry>
|
77
|
+
<varlistentry>
|
78
|
+
<term><option>-client</option> client JVM</term>
|
79
|
+
<listitem>
|
80
|
+
<para>use a client Java Virtual Machine.</para>
|
81
|
+
</listitem>
|
82
|
+
</varlistentry>
|
83
|
+
<varlistentry>
|
84
|
+
<term><option>-server</option> server JVM</term>
|
85
|
+
<listitem>
|
86
|
+
<para>use a server Java Virtual Machine.</para>
|
87
|
+
</listitem>
|
88
|
+
</varlistentry>
|
89
|
+
<varlistentry>
|
90
|
+
<term><option>-cp/ -classpath</option> directory and zip/jar
|
91
|
+
files</term>
|
92
|
+
<listitem>
|
93
|
+
<para>set search path for service classes and resouces</para>
|
94
|
+
</listitem>
|
95
|
+
</varlistentry>
|
96
|
+
<varlistentry>
|
97
|
+
<term><option>-java-home</option> directory</term>
|
98
|
+
<listitem>
|
99
|
+
<para>set the path of your JDK or JRE installation (or set
|
100
|
+
the JAVA_HOME environment variable)
|
101
|
+
</para>
|
102
|
+
</listitem>
|
103
|
+
</varlistentry>
|
104
|
+
<varlistentry>
|
105
|
+
<term><option>-version</option></term>
|
106
|
+
<listitem>
|
107
|
+
<para>show the current Java environment version (to check
|
108
|
+
correctness of -home and -jvm. Implies -nodetach)</para>
|
109
|
+
</listitem>
|
110
|
+
</varlistentry>
|
111
|
+
<varlistentry>
|
112
|
+
<term><option>-help</option></term>
|
113
|
+
<listitem>
|
114
|
+
<para>show this help page (implies -nodetach)</para>
|
115
|
+
</listitem>
|
116
|
+
</varlistentry>
|
117
|
+
<varlistentry>
|
118
|
+
<term><option>-nodetach</option></term>
|
119
|
+
<listitem>
|
120
|
+
<para>don't detach from parent process and become a daemon</para>
|
121
|
+
</listitem>
|
122
|
+
</varlistentry>
|
123
|
+
<varlistentry>
|
124
|
+
<term><option>-debug</option></term>
|
125
|
+
<listitem>
|
126
|
+
<para>verbosely print debugging information</para>
|
127
|
+
</listitem>
|
128
|
+
</varlistentry>
|
129
|
+
<varlistentry>
|
130
|
+
<term><option>-check</option></term>
|
131
|
+
<listitem>
|
132
|
+
<para>only check service (implies -nodetach)</para>
|
133
|
+
</listitem>
|
134
|
+
</varlistentry>
|
135
|
+
<varlistentry>
|
136
|
+
<term><option>-stop</option></term>
|
137
|
+
<listitem>
|
138
|
+
<para>stop the service using the file given in the -pidfile option</para>
|
139
|
+
</listitem>
|
140
|
+
</varlistentry>
|
141
|
+
<varlistentry>
|
142
|
+
<term><option>-wait</option> waittime</term>
|
143
|
+
<listitem>
|
144
|
+
<para>wait up to waittime seconds for the service to start
|
145
|
+
waittime should multiple of 10 (min=10)
|
146
|
+
</para>
|
147
|
+
</listitem>
|
148
|
+
</varlistentry>
|
149
|
+
<varlistentry>
|
150
|
+
<term><option>-umask</option> mask</term>
|
151
|
+
<listitem>
|
152
|
+
<para>sets the file mode creation mask
|
153
|
+
</para>
|
154
|
+
</listitem>
|
155
|
+
</varlistentry>
|
156
|
+
<varlistentry>
|
157
|
+
<term><option>-user</option> user</term>
|
158
|
+
<listitem>
|
159
|
+
<para>user used to run the daemon (defaults to current user)</para>
|
160
|
+
</listitem>
|
161
|
+
</varlistentry>
|
162
|
+
<varlistentry>
|
163
|
+
<term><option>-verbose[:class|gc|jni]</option></term>
|
164
|
+
<listitem>
|
165
|
+
<para>enable verbose output</para>
|
166
|
+
</listitem>
|
167
|
+
</varlistentry>
|
168
|
+
<varlistentry>
|
169
|
+
<term><option>-outfile</option> /full/path/to/file</term>
|
170
|
+
<listitem>
|
171
|
+
<para>Location for output from stdout (defaults to
|
172
|
+
/dev/null). Use the value '&2' to simulate
|
173
|
+
'1>&2', or 'SYSLOG' to send output to the system
|
174
|
+
log.</para>
|
175
|
+
</listitem>
|
176
|
+
</varlistentry>
|
177
|
+
<varlistentry>
|
178
|
+
<term><option>-errfile</option> /full/path/to/file</term>
|
179
|
+
<listitem>
|
180
|
+
<para>Location for output from stderr (defaults to
|
181
|
+
/dev/null). Use the value '&1' to simulate
|
182
|
+
'2>&1', or 'SYSLOG' to send output to the system
|
183
|
+
log.</para>
|
184
|
+
</listitem>
|
185
|
+
</varlistentry>
|
186
|
+
<varlistentry>
|
187
|
+
<term><option>-pidfile</option> /full/path/to/file</term>
|
188
|
+
<listitem>
|
189
|
+
<para>Location for output from the file containing the pid of jsvc
|
190
|
+
(defaults to /var/run/jsvc.pid)</para>
|
191
|
+
</listitem>
|
192
|
+
</varlistentry>
|
193
|
+
<varlistentry>
|
194
|
+
<term><option>-D</option><name>=<value></term>
|
195
|
+
<listitem>
|
196
|
+
<para>set a Java system property</para>
|
197
|
+
</listitem>
|
198
|
+
</varlistentry>
|
199
|
+
<varlistentry>
|
200
|
+
<term><option>-X</option><option></term>
|
201
|
+
<listitem>
|
202
|
+
<para>set Virtual Machine specific option</para>
|
203
|
+
</listitem>
|
204
|
+
</varlistentry>
|
205
|
+
</variablelist>
|
206
|
+
</refsect1>
|
207
|
+
|
208
|
+
<refsect1 id='author'><title>AUTHOR</title>
|
209
|
+
<para>JSVC is part of the Apache Commons Daemon project. Authors are
|
210
|
+
Jean-Frederic Clere, Remy Maucherat, Yoav Shapira, Bill Barker, Mladen Turk. JSVC is
|
211
|
+
released under the Apache License Version 2.0.</para>
|
212
|
+
</refsect1>
|
213
|
+
|
214
|
+
</refentry>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#
|
2
|
+
# Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
+
# contributor license agreements. See the NOTICE file distributed with
|
4
|
+
# this work for additional information regarding copyright ownership.
|
5
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
+
# (the "License"); you may not use this file except in compliance with
|
7
|
+
# the License. You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
# @author Pier Fumagalli <mailto:pier.fumagalli@eng.sun.com>
|
18
|
+
# @version $Id: Makefile.in 1025844 2010-10-21 06:17:47Z mturk $
|
19
|
+
|
20
|
+
include ../Makedefs
|
21
|
+
|
22
|
+
OBJS = arguments.o \
|
23
|
+
debug.o \
|
24
|
+
dso-dlfcn.o \
|
25
|
+
dso-dyld.o \
|
26
|
+
help.o \
|
27
|
+
home.o \
|
28
|
+
java.o \
|
29
|
+
location.o \
|
30
|
+
replace.o \
|
31
|
+
locks.o \
|
32
|
+
signals.o
|
33
|
+
|
34
|
+
all: jsvc libservice.a
|
35
|
+
|
36
|
+
libservice.a: $(OBJS)
|
37
|
+
ar cr libservice.a $(OBJS)
|
38
|
+
$(RANLIB) libservice.a
|
39
|
+
|
40
|
+
jsvc: jsvc-unix.o libservice.a
|
41
|
+
$(LDCMD) $(LDFLAGS) $(EXTRA_LDFLAGS) jsvc-unix.o libservice.a $(LIBS) -o ../jsvc
|
42
|
+
$(STRIP) ../jsvc
|
43
|
+
|
44
|
+
clean:
|
45
|
+
rm -f $(OBJS) ../jsvc jsvc-unix.o libservice.a
|
46
|
+
|