Skip to content

Instantly share code, notes, and snippets.

@udzura
Created December 3, 2015 06:49
Show Gist options
  • Save udzura/b698259a5dfedbf2a94e to your computer and use it in GitHub Desktop.
Save udzura/b698259a5dfedbf2a94e to your computer and use it in GitHub Desktop.
systemd環境でのtd-agentのUnitファイル
[Unit]
Description=Fluentd: data collector for Treasure Data
Documentation=http://docs.fluentd.org/
After=network-online.target consul_agent.service
Wants=network-online.target
[Service]
Type=forking
PIDFile=/var/run/td-agent/td-agent.pid
ExecStart=/etc/rc.d/init.d/td-agent start
ExecStop=/etc/rc.d/init.d/td-agent stop
ExecReload=/etc/rc.d/init.d/td-agent reload
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment