-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ported python plugin to new signal_wait api
- Loading branch information
roberto@debian32
committed
Nov 10, 2011
1 parent
18f7d1e
commit 69c2e56
Showing
2 changed files
with
38 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require 'stringio' | ||
require 'uwsgidsl' | ||
|
||
timer 2 do |signum| | ||
puts "ciao sono un dsl ruby: #{signum}" | ||
end | ||
|
||
=begin | ||
timer 1,'mule' do |signum| | ||
puts "1 second elapsed (signum #{signum})" | ||
end | ||
filemon '/tmp' do |signum| | ||
puts "/tmp has been modified" | ||
end | ||
cron 5,-1,-1,-1,-1 do |signum| | ||
puts "cron ready #{signum}" | ||
end | ||
cron 58,-1,-1,-1,-1 do |signum| | ||
puts "cron ready #{signum}" | ||
end | ||
=end | ||
|
||
run lambda { |env| | ||
puts env.inspect | ||
#UWSGI.signal(17) | ||
[200, {'Content-Type'=>'text/plain'}, StringIO.new("Hello World!\n")] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters