diff options
-rw-r--r-- | lib/chef/daemon.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/daemon.rb b/lib/chef/daemon.rb index 1426234645..e5abca29d8 100644 --- a/lib/chef/daemon.rb +++ b/lib/chef/daemon.rb @@ -25,6 +25,7 @@ class Chef class Daemon class << self attr_accessor :name + attr_accessor :runlock # Daemonize the current process, managing pidfiles and process uid/gid # @@ -33,7 +34,7 @@ class Chef # def daemonize(name) @name = name - runlock = RunLock.new(pid_file) + @runlock = RunLock.new(pid_file) if runlock.test # We've acquired the daemon lock. Now daemonize. Chef::Log.info("Daemonizing..") |