semi_daemon 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/semi_daemon.rb +4 -4
- data/lib/semi_daemon/version.rb +2 -2
- metadata +6 -7
data/lib/semi_daemon.rb
CHANGED
@@ -27,12 +27,12 @@ class SemiDaemon
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def inherited(child)
|
30
|
-
child.log_file "
|
31
|
-
child.pid_file "
|
30
|
+
child.log_file "log/#{child.daemon_name}.log"
|
31
|
+
child.pid_file "log/#{child.daemon_name}.pid"
|
32
32
|
end
|
33
33
|
|
34
34
|
def stop_file
|
35
|
-
"
|
35
|
+
"log/#{daemon_name}.stop"
|
36
36
|
end
|
37
37
|
|
38
38
|
end
|
@@ -50,7 +50,7 @@ class SemiDaemon
|
|
50
50
|
|
51
51
|
def logger
|
52
52
|
@logger ||= begin
|
53
|
-
l=Logger.new root(
|
53
|
+
l=Logger.new root(log_file)
|
54
54
|
l.formatter = SimpleLogFormatter.new
|
55
55
|
l
|
56
56
|
end
|
data/lib/semi_daemon/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semi_daemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 2
|
10
|
+
version: 0.9.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Goebel
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
18
|
+
date: 2012-02-16 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: simple class for creating long running daemon processes easily
|
@@ -33,7 +32,6 @@ files:
|
|
33
32
|
- lib/semi_daemon.rb
|
34
33
|
- vendor/god/system/process.rb
|
35
34
|
- readme.markdown
|
36
|
-
has_rdoc: true
|
37
35
|
homepage:
|
38
36
|
licenses: []
|
39
37
|
|
@@ -63,9 +61,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
61
|
requirements: []
|
64
62
|
|
65
63
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.
|
64
|
+
rubygems_version: 1.8.15
|
67
65
|
signing_key:
|
68
66
|
specification_version: 3
|
69
67
|
summary: simple class for creating long running daemon processes
|
70
68
|
test_files: []
|
71
69
|
|
70
|
+
has_rdoc: true
|