daemons 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -1,4 +1,4 @@
1
- = Daemons Version 1.0.2
1
+ = Daemons Version 1.0.3
2
2
 
3
3
  (See Releases for release-specific information)
4
4
 
data/Releases CHANGED
@@ -1,5 +1,9 @@
1
1
  = Daemons Release History
2
2
 
3
+ == Release 1.0.3: November 1, 2006
4
+
5
+ * Set the app_name correctly also for the monitor process (thanks to Ilya Novoselov).
6
+
3
7
  == Release 1.0.2: September 26, 2006
4
8
 
5
9
  * Changed the 'ps -ax' call back to 'ps ax'.
data/lib/daemons.rb CHANGED
@@ -65,7 +65,7 @@ require 'daemons/controller'
65
65
  #
66
66
  module Daemons
67
67
 
68
- VERSION = "1.0.2"
68
+ VERSION = "1.0.3"
69
69
 
70
70
  require 'daemons/daemonize'
71
71
 
@@ -33,6 +33,8 @@ module Daemons
33
33
  else
34
34
  @pid = PidMem.new
35
35
  end
36
+
37
+ @app_name = an_app.group.app_name + '_monitor'
36
38
  end
37
39
 
38
40
  def watch(applications)
@@ -59,7 +61,7 @@ module Daemons
59
61
 
60
62
  def start_with_pidfile(applications)
61
63
  fork do
62
- Daemonize.daemonize
64
+ Daemonize.daemonize(nil, @app_name)
63
65
 
64
66
  begin
65
67
  @pid.pid = Process.pid
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: daemons
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.2
7
- date: 2006-10-04 00:00:00 +02:00
6
+ version: 1.0.3
7
+ date: 2006-11-02 00:00:00 +01:00
8
8
  summary: A toolkit to create and control daemons in different ways
9
9
  require_paths:
10
10
  - lib