Change the following two lines in /etc/init.d/td-agent:
#!/bin/bash
### BEGIN INIT INFO
# Provides: td-agent
# Required-Start: $network $local_fs
# Required-Stop: $network $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: data collector for Treasure Data
# Description: td-agent is a data collector
### END INIT INFO
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
TD_AGENT_NAME=td-agent
TD_AGENT_HOME=/opt/td-agent
TD_AGENT_DEFAULT=/etc/sysconfig/td-agent
TD_AGENT_USER=root #td-agent
TD_AGENT_GROUP=root #td-agent
TD_AGENT_RUBY=/opt/td-agent/embedded/bin/ruby
TD_AGENT_BIN_FILE=/usr/sbin/td-agent
TD_AGENT_LOG_FILE=/var/log/td-agent/td-agent.log
TD_AGENT_PID_FILE=/var/run/td-agent/td-agent.pid
TD_AGENT_LOCK_FILE=/var/lock/subsys/td-agent
TD_AGENT_OPTIONS="--use-v1-config"
#!/bin/bash
### BEGIN INIT INFO
# Provides: td-agent
# Required-Start: $network $local_fs
# Required-Stop: $network $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: data collector for Treasure Data
# Description: td-agent is a data collector
### END INIT INFO
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
TD_AGENT_NAME=td-agent
TD_AGENT_HOME=/opt/td-agent
TD_AGENT_DEFAULT=/etc/sysconfig/td-agent
TD_AGENT_USER=root #td-agent
TD_AGENT_GROUP=root #td-agent
TD_AGENT_RUBY=/opt/td-agent/embedded/bin/ruby
TD_AGENT_BIN_FILE=/usr/sbin/td-agent
TD_AGENT_LOG_FILE=/var/log/td-agent/td-agent.log
TD_AGENT_PID_FILE=/var/run/td-agent/td-agent.pid
TD_AGENT_LOCK_FILE=/var/lock/subsys/td-agent
TD_AGENT_OPTIONS="--use-v1-config"
Comments
Post a Comment