Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calavera/trinidad_daemon_extension
THIS IS NOT THE OFFICIAL REPO, SEE: http://github.com/trinidad/trinidad_daemon_extension
https://github.com/calavera/trinidad_daemon_extension
Last synced: about 2 months ago
JSON representation
THIS IS NOT THE OFFICIAL REPO, SEE: http://github.com/trinidad/trinidad_daemon_extension
- Host: GitHub
- URL: https://github.com/calavera/trinidad_daemon_extension
- Owner: calavera
- License: mit
- Created: 2010-04-17T08:06:03.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-05T16:58:18.000Z (over 13 years ago)
- Last Synced: 2024-04-14T09:16:04.624Z (9 months ago)
- Language: Ruby
- Homepage: http://github.com/calavera/trinidad_daemon_extension
- Size: 9.07 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: History.txt
- License: LICENSE
Awesome Lists containing this project
README
Trinidad Daemon Extension
=======# DESCRIPTION
Extension to run Trinidad server as a daemon.
[WARNING] This extension only works with Trinidad 0.8.3 or above.
# 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 route can be overrided.* To enable it from the configuration file you have to add a section "extensions" to the root of the file and the section "daemon" to this one. The pid file can be specified there:
---
extensions:
daemon:
pid_file: ./trinidad.pid # this is optional by default the extension writes the pid file into a temporal directory.* To enable it from the command line you have to load the extension first and then add one of these options:
--daemonize [PID_FILE]
for instance:
$ jruby -S trinidad --load daemon --daemonize ./trinidad.pid
The extension also allows to add new JVM arguments to run the daemon with. They just need to be added into the configuration file:
---
extensions:
daemon:
jvm_args: '-XX:MaxPermSize=512m'You can find further information on how to write your own extension in the wiki: http://wiki.github.com/calavera/trinidad/extensions
# DEVELOPMENT
Copy the hooks into git-hooks directory to .git/hooks to make sure the jar file is updated when the java code is modified.
# Copyright
Copyright (c) 2010 David Calavera. See LICENSE for details.