This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Installing JSVC
kares edited this page Jan 17, 2012
·
2 revisions
JSVC is a wrapper to launch Java applications as daemons under UNIX. It's a part of commons daemon.
It serves as the metal underneath when using trinidad_init_services artifacts to launch Trinidad as a daemon.
Compiled jsvc
binaries (for Linux and Darwin platforms) are packaged with the gem, unfortunately they seem not to be working for all.
As a last resort in such cases we recommend compiling the binary from source, or installing it using your distribution's package manager if a fairly recent version is provided and maintained.
-
Download and unpack (e.g. to
/usr/local/src
) commons-daemon-x.x.x-native-src.tar.gz - Change dir to the unix folder (e.g.
cd /usr/local/src/commons-daemon-1.0.8-native-src/unix
) - Configure and make the binary
./configure && make
- In case all dependencies where met, a
jsvc
binary should appear in your working directory
-
Finally adjust your generated
/etc/init.d/trinidad
file to use the previously compiled jsvc binary :Locate the
JSVC=...
line and adjust it e.g.JSVC=/usr/local/src/commons-daemon-1.0.8-native-src/unix/jsvc