mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 09:17:05 +02:00
28 lines
539 B
Ruby
28 lines
539 B
Ruby
class Fluentd
|
|
class Agent
|
|
class TdAgent
|
|
include Common
|
|
include LocalCommon
|
|
|
|
def self.default_options
|
|
{
|
|
:pid_file => "/var/run/td-agent/td-agent.pid",
|
|
:log_file => "/var/log/td-agent/td-agent.log",
|
|
:config_file => "/etc/td-agent/td-agent.conf",
|
|
}
|
|
end
|
|
|
|
def version
|
|
`/usr/sbin/td-agent --version`.strip
|
|
end
|
|
|
|
case FluentdUI.platform
|
|
when :macosx
|
|
include Macosx
|
|
when :unix
|
|
include Unix
|
|
end
|
|
end
|
|
end
|
|
end
|