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 ?
systemd
version 236. – Dave Dec 20 '18 at 05:54file:
option creates a new file the first time and then fails on subsequent restarts of the app for me, i triedappend:
and it didn't work at all – Ryan Burnette Jan 29 '19 at 17:07/bin/sh -c ...
(at least on Ubuntu). – ToFi Oct 08 '19 at 21:32StandardOutput
andStandardError
settings need to be added under the[Service]
section – Seth Jul 14 '23 at 18:20