I am trying to create systemd service file for Flume, have created /etc/systemd/system/flume-ng.service
with following contents
[Unit]
Description=Apache Flume
[Service]
Environment=FLUME_CLASSPATH=/opt/flume/current/lib/
ExecStart=/usr/bin/nohup /usr/bin/flume-ng agent -c /etc/flume-ng/conf -f /etc/flume-ng/conf/flume.conf --name a1 &
[Install]
WantedBy=multi-user.target
which start the Flume service but how do I stop it as a service ?
In this case I had to kill with PID.
thanks