mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 17:27:09 +02:00
22 lines
498 B
Ruby
22 lines
498 B
Ruby
class Fluentd
|
|
class Agent
|
|
class TdAgent
|
|
module Unix
|
|
def start
|
|
detached_command('/etc/init.d/td-agent start')
|
|
end
|
|
|
|
def stop
|
|
detached_command('/etc/init.d/td-agent stop')
|
|
end
|
|
|
|
def restart
|
|
# NOTE: td-agent has no reload command
|
|
# https://github.com/treasure-data/td-agent/blob/master/debian/td-agent.init#L156
|
|
detached_command('/etc/init.d/td-agent restart')
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|