fluentd-ui/app/models/fluentd/agent/td_agent/unix.rb
鳥井 雪 b87b2c8af4 Add #backup_running_config method
on Fluentd::Agent
2014-12-15 15:37:21 +09:00

24 lines
549 B
Ruby

class Fluentd
class Agent
class TdAgent
module Unix
def start
backup_running_config do
detached_command('/etc/init.d/td-agent start')
end
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