lib/bluepill/process.rb in bluepill-0.0.38 vs lib/bluepill/process.rb in bluepill-0.0.39
- old
+ new
@@ -13,10 +13,11 @@
:stdin,
:daemonize,
:pid_file,
:working_dir,
+ :environment,
:start_grace_time,
:stop_grace_time,
:restart_grace_time,
@@ -94,10 +95,11 @@
@statistics = ProcessStatistics.new
# These defaults are overriden below if it's configured to be something else.
@monitor_children = false
@start_grace_time = @stop_grace_time = @restart_grace_time = 3
+ @environment = {}
CONFIGURABLE_ATTRIBUTES.each do |attribute_name|
self.send("#{attribute_name}=", options[attribute_name]) if options.has_key?(attribute_name)
end
@@ -388,10 +390,11 @@
def system_command_options
{
:uid => self.uid,
:gid => self.gid,
:working_dir => self.working_dir,
+ :environment => self.environment,
:pid_file => self.pid_file,
:logger => self.logger,
:stdin => self.stdin,
:stdout => self.stdout,
:stderr => self.stderr
@@ -406,6 +409,6 @@
logger.err "Did you forget to tell bluepill to daemonize this process?"
self.dispatch!("unmonitor")
end
end
end
-
\ No newline at end of file
+