Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Trinidad init services based on Apache Commons Daemon and JRuby-JSVC
Shell C Ruby C++

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
init.d
lib
spec
trinidad-libs
.gitignore
History.txt
LICENSE
README
Rakefile
trinidad_init_services.gemspec

README

Trinidad init services
===============

Trinidad's init services library based on Apache Commons Daemon and JRuby-jsvc. Works on Unix and Windows systems.

Installation
============

$ jruby -S gem install trinidad_init_services

When the gem is installed the user must launch the installation process:

    $ jruby -S trinidad_init_service

This installer guides you through the configuration process and generates a
init.d script if you are on a unix system or creates the service if you are
on a windows box.

You can optionally provide a configuration file to the trinidad_init_service
command.  An example configuration file might look like this:

    app_path: "/home/myuser/app"
    trinidad_options: "-e production"
    jruby_home: "/opt/jruby"
    ruby_compat_version: RUBY1_8
    trinidad_name: Trinidad
    jsvc_path: "/usr/bin/jsvc"
    java_home: "/opt/java"
    output_path: "/etc/init.d"
    pid_file: "/tmp/trinidad.pid"
    log_file: "/tmp/trinidad.log"

You can then run the installer like so:

    $ jruby -S trinidad_init_service trinidad_init_config.yml

If any of the required options are not provided in the configuration file, then the installer will prompt you
for them.

Unix
====

  Execution
  =========

  When the installation process finishes you can use the script trinidad-daemon.sh
  generated to launch the server as a daemon with the options start|stop|restart,
  i.e:

      $ /etc/init.d/trinidad restart

Windows
=======

  Execution
  =========

  Open the `Services` panel under `Administrative Tools` and look for a
  service called `Trinidad`.

== Copyright

Copyright (c) 2011 David Calavera<calavera@apache.org>. See LICENSE for details.
Something went wrong with that request. Please try again.