1

I have configured fluentd using fluentd-ui on debian machine. How do I start it in background without the GUI?

Mahesh Uligade
  • 597
  • 8
  • 17
  • 1
    [Documentation](https://docs.fluentd.org/v0.12/articles/command-line-option), quote: ` -d, --daemon PIDFILE daemonize fluent process` – Mike Doe Aug 03 '18 at 07:30
  • Hope this helps https://stackoverflow.com/questions/4797050/how-to-run-process-as-background-and-never-die – Pharaoh Aug 03 '18 at 07:54

1 Answers1

0

In your /etc/systemd/system you can create a file and define the service:

fluentd.service

[Unit]
Description=Fluentd
Documentation=http://www.fluentd.org/
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/fluentd -d /run/fluentd.pid
PIDFile=/run/fluentd.pid
Restart=on-failure

[Install]
WantedBy=multi-user.target
Nicola Ben
  • 10,615
  • 8
  • 41
  • 65