module Luban::Deployment::Applications::Fluentd::Controller::Commands

Public Instance Methods

process_pattern() click to toggle source
# File lib/luban/deployment/applications/fluentd/controller.rb, line 7
def process_pattern
  @process_pattern ||= "^supervisor:#{env_name}"
end
start_command() click to toggle source
# File lib/luban/deployment/applications/fluentd/controller.rb, line 11
def start_command
  @start_command ||= bundle_command("fluentd -c #{control_file_path} -d #{pid_file_path} -o #{log_file_path}")
end
stop_command() click to toggle source
# File lib/luban/deployment/applications/fluentd/controller.rb, line 15
def stop_command
  @stop_command ||= shell_command("kill $(cat #{pid_file_path} 2>/dev/null)")
end