-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
27 lines (22 loc) · 1.47 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "daemons-mikehale"
gemspec.summary = "A toolkit to convert your script to a controllable daemon (with Chris Kline's fix)"
gemspec.description = <<-EOF
This is Daemons 1.0.10 with the addition of Chris Kline's fix from http://blog.rapleaf.com/dev/?p=19
Includes ability to change the process uid/gid. Also logdir can be specified seperate from piddir.
Daemons provides an easy way to wrap existing ruby scripts (for example a self-written server) to be run as a daemon and to be controlled by simple start/stop/restart commands.
If you want, you can also use daemons to run blocks of ruby code in a daemon process and to control these processes from the main application.
Besides this basic functionality, daemons offers many advanced features like exception backtracing and logging (in case your ruby script crashes) and monitoring and automatic restarting of your processes if they crash.
Daemons includes the daemonize.rb script written by Travis Whitton to do the daemonization process.
EOF
gemspec.author = "Thomas Uehlinger"
gemspec.email = "[email protected]"
gemspec.homepage = "http://gemcutter.org/gems/daemons-mikehale"
gemspec.authors = ["Michael Hale", "Thomas Uehlinger", "Travis Whitton", "Chris Kline"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end