mikehale-daemons 1.0.12.1 → 1.0.12.2

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/daemons.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "daemons"
3
- s.version = "1.0.12.1"
4
- s.date = "2009-02-24"
3
+ s.version = "1.0.12.2"
4
+ s.date = "2009-02-25"
5
5
  s.summary = "A toolkit to convert your script to a controllable daemon (with Chris Kline's fix)"
6
6
  s.email = "mikehale@gmail.com"
7
7
  s.homepage = "http://github.com/mikehale/daemons"
@@ -38,7 +38,6 @@ module Daemons
38
38
  @pid = PidMem.new
39
39
  end
40
40
  end
41
- change_privilege
42
41
  end
43
42
 
44
43
  def change_privilege
@@ -256,6 +255,7 @@ module Daemons
256
255
 
257
256
 
258
257
  def start
258
+ change_privilege
259
259
  @group.create_monitor(@group.applications[0] || self) unless options[:ontop] # we don't monitor applications in the foreground
260
260
 
261
261
  case options[:mode]
data/lib/daemons.rb CHANGED
@@ -66,7 +66,7 @@ require 'timeout'
66
66
  #
67
67
  module Daemons
68
68
 
69
- VERSION = "1.0.12.1"
69
+ VERSION = "1.0.12.2"
70
70
 
71
71
  require 'daemons/daemonize'
72
72
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikehale-daemons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12.1
4
+ version: 1.0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hale
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-02-24 00:00:00 -08:00
15
+ date: 2009-02-25 00:00:00 -08:00
16
16
  default_executable:
17
17
  dependencies: []
18
18