I was trying to run flume on Ubuntu 16.04 as systemd service and have following in /etc/systemd/system/flume-ng.service
[Unit] Description=Apache Flume [Service] ExecStart=/usr/bin/nohup /opt/flume/current/bin/flume-ng agent -c /etc/flume-ng/conf -f /etc/flume-ng/conf/flume.conf --name a1 & ExecStop=/opt/flume/current/bin/flume-ng agent stop [Install] WantedBy=multi-user.target I tried adding following lines
StandardOutput=/var/log/flume-ng/log1.log StandardError=/var/log/flume-ng/log2.log which didn't work for me. I did run systemctl daemon-reload and systemctl restart flume-ng
anyone know how this works ?