Repository is archived
No commit activity in last 3 years
No release in over 3 years
Trinidad extension to run the Apache Tomcat server as a daemon (for Unix only).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.11
~> 2.10

Runtime

>= 1.3.5
 Project Readme

Trinidad Daemon Extension

Extension to run Trinidad server as a daemon.

Installation

jruby -S gem install trinidad_daemon_extension

Usage

This extension can be enabled from the Trinidad's configuration file or from the command line. It uses a temporal directory to write the pid file but its path can be overridden.

Configuration file

Configure the daemon in the "extensions" section of the trinidad.yml file :

---
  extensions:
    daemon:
      # optional by default the pid is written into a temporal directory :
      pid_file: ./trinidad.pid

The extension also allows tuning JVM arguments to run the daemon with. They just need to be added into the jvm_args configuration section:

---
  extensions:
    daemon:
      jvm_args: '-XX:MaxPermSize=512m'

NOTE: Be aware that jvm_args are bare java options and not ones accepted by the jruby command !

Command line

To enable the extension from the command line you have to load the extension first and then use it's --daemonize [PID_FILE] option :

$ jruby -S trinidad --load daemon --daemonize ./trinidad.pid

You can find further information on how to write your own extension in the wiki: http://wiki.github.com/calavera/trinidad/extensions

Copyright

Copyright (c) 2013 Team Trinidad. See LICENSE (http://en.wikipedia.org/wiki/MIT_License) for details.