OkGntpd
An GNTPd which always return "OK".
Installation
Add this line to your application's Gemfile:
gem 'ok_gntpd'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ok_gntpd
Usage
As non-daemon
Start GNTP server with:
$ ok_gntpd
Press Ctrl-C to stop it.
You can specify port number with -p
(default 23053).
As daemon
Start GNTP server with:
$ ok_gntpd -d
You can specify pid file with -P
(default /var/run/ok_gntpd.pid).
Stop it with:
$ ok_gntpd -k -P /path/to/pid/file
Help!
$ ok_gntpd --help
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Acknowledgement
This code is originated from @snaka's post: http://d.hatena.ne.jp/snaka72/20090614/1244986772