Class Chef::Daemon
In: lib/chef/daemon.rb
Parent: Object

Methods

Attributes

name  [RW] 

Public Class methods

Change privileges of the process to be the specified user and group

Parameters

user<String>:The user to change the process to.
group<String>:The group to change the process to.

Alternatives

If group is left out, the user will be used (changing to user:user)

Change process user/group to those specified in Chef::Config

Daemonize the current process, managing pidfiles and process uid/gid

Parameters

name<String>:The name to be used for the pid file

Gets the pid file for @name

Returns

String:Location of the pid file for @name

Suck the pid out of pid_file

Returns

Integer:The PID from pid_file
nil:Returned if the pid_file does not exist.

Delete the PID from the filesystem

Check if Chef is running based on the pid_file

Returns

Boolean:: True if Chef is running False if Chef is not running

Store the PID on the filesystem This uses the Chef::Config[:pid_file] option, or "/tmp/name.pid" otherwise

[Validate]