summarylogtreecommitdiffstats
path: root/systemd.service
blob: 510c61dbc2dfeb5b53e0f80aa6b8fdedca3e3a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=Fluentd daemon
Documentation=https://docs.fluentd.org
After=network-online.target
Wants=network-online.target

[Service]
User=fluentd
Group=fluentd
LimitNOFILE=65536
Environment=FLUENT_CONF=/etc/fluent/fluentd.conf
Environment=FLUENT_PLUGIN=/etc/fluent/plugin
Environment=FLUENT_SOCKET=/run/fluent/fluentd.sock
Environment=FLUENT_LOG_FILE=/var/log/fluentd/fluentd.log
Environment=FLUENT_AGENT_OPTIONS=""
PIDFile=/run/fluentd/fluentd.pid
RuntimeDirectory=fluentd
Type=forking
ExecStart=/usr/bin/fluentd --log $FLUENT_LOG_FILE --daemon /run/fluentd/fluentd.pid $FLUENT_AGENT_OPTIONS
ExecStop=/usr/bin/kill -TERM ${MAINPID}
ExecReload=/usr/bin/kill -HUP ${MAINPID}
Restart=always
TimeoutStopSec=120

[Install]
WantedBy=multi-user.target