Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junegunn/jruby-daemon-template
Turn a JRuby script into an init-d style daemon
https://github.com/junegunn/jruby-daemon-template
Last synced: 28 days ago
JSON representation
Turn a JRuby script into an init-d style daemon
- Host: GitHub
- URL: https://github.com/junegunn/jruby-daemon-template
- Owner: junegunn
- Created: 2012-08-22T01:32:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-08T16:49:50.000Z (over 11 years ago)
- Last Synced: 2024-05-08T22:54:07.990Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 133 KB
- Stars: 18
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Daemonizing JRuby script
========================Turn a JRuby script into an init-d style daemon with `nohup` command.
Usage
-----```
git clone https://github.com/junegunn/jruby-daemon-template
jruby-daemon-template/create-template my-daemon
```Then you will have the following files and directories.
- `my-daemon/my-daemon`
- A wrapper script for implementing init.d-style start/stop/restart interface.
- `my-daemon/my-daemon.rb`
- This is your main JRuby script.
- `my-daemon/log/`
- Log files, my-daemon.out and my-daemon.err, will be created in this directory.
- `my-daemon/pid/`
- PID file for the daemon process will be created in this directory.
- `my-daemon/Gemfile`
- `my-daemon/Gemfile.lock````
my-daemon/my-daemon start
```