simple-daemon 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/lib/simple-daemon.rb +3 -3
- data/lib/simple-daemon/version.rb +1 -1
- data/website/index.html +4 -1
- data/website/index.txt +2 -0
- metadata +2 -2
data/History.txt
CHANGED
data/lib/simple-daemon.rb
CHANGED
@@ -5,11 +5,11 @@ module SimpleDaemon
|
|
5
5
|
class Base
|
6
6
|
|
7
7
|
def self.classname
|
8
|
-
name
|
8
|
+
name.split("::").last
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.pid_fn
|
12
|
-
File.join(SimpleDaemon::
|
12
|
+
File.join(SimpleDaemon::WORKING_DIRECTORY, "#{classname}.pid")
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.daemonize
|
@@ -48,7 +48,7 @@ module SimpleDaemon
|
|
48
48
|
Process.setsid
|
49
49
|
exit if fork
|
50
50
|
PidFile.store(daemon, Process.pid)
|
51
|
-
Dir.chdir SimpleDaemon::
|
51
|
+
Dir.chdir SimpleDaemon::WORKING_DIRECTORY
|
52
52
|
File.umask 0000
|
53
53
|
log = File.new("#{daemon.classname}.log", "a")
|
54
54
|
STDIN.reopen "/dev/null"
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>simple-daemon</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/simple-daemon"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/simple-daemon" class="numbers">0.1.
|
36
|
+
<a href="http://rubyforge.org/projects/simple-daemon" class="numbers">0.1.2</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘simple-daemon’</h1>
|
39
39
|
|
@@ -96,6 +96,9 @@ Processor.daemonize
|
|
96
96
|
<h2>Contact</h2>
|
97
97
|
|
98
98
|
|
99
|
+
<p>Thanks to Sharon Rosner for the original module. simple-daemon is substantially his code, with a few improvements (and the gem packaging) by Jon Dahl of <a href="http://slantwisedesign.com">Slantwise Design</a> and <a href="http://railspikes.com">Railspikes</a> (blog).</p>
|
100
|
+
|
101
|
+
|
99
102
|
<p>Comments are welcome. Send an email to <a href="mailto:simple-daemon@googlegroups.com">simple-daemon@googlegroups.com</a>.</p>
|
100
103
|
<p class="coda">
|
101
104
|
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 9th July 2007<br>
|
data/website/index.txt
CHANGED
@@ -48,4 +48,6 @@ This code is free to use under the terms of the MIT license.
|
|
48
48
|
|
49
49
|
h2. Contact
|
50
50
|
|
51
|
+
Thanks to Sharon Rosner for the original module. simple-daemon is substantially his code, with a few improvements (and the gem packaging) by Jon Dahl of "Slantwise Design":http://slantwisedesign.com and "Railspikes":http://railspikes.com (blog).
|
52
|
+
|
51
53
|
Comments are welcome. Send an email to "simple-daemon@googlegroups.com":mailto:simple-daemon@googlegroups.com.
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: simple-daemon
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.1.2
|
7
|
+
date: 2007-09-19 00:00:00 -05:00
|
8
8
|
summary: Simple module that adds daemon functionality to a Ruby script.
|
9
9
|
require_paths:
|
10
10
|
- lib
|