Sha256: 318f068cd85e440e2610a329b8ac443d20821306ce89255fe33327515672f3ae

Contents?: true

Size: 643 Bytes

Versions: 2

Compression:

Stored size: 643 Bytes

Contents

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

        def dryrun
          detached_command('/etc/init.d/td-agent configtest')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluentd-ui-0.3.13 app/models/fluentd/agent/td_agent/unix.rb
fluentd-ui-0.3.12 app/models/fluentd/agent/td_agent/unix.rb