I have a question on telegraf, may be someone would have a answer, though this is a grafana forumn,
I want to run telegraf in the background (i…, for ever) , even if i close my putty window. mine is a linux machine.
docker run has the -d argument so that it runs in background. how to run telegraf the same way
I figured it out i wrote a file called telegraf.service
with below contents and saved it in location /etc/systemd/system/
[Unit]
Description=Telegraf Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/telegraf
Restart=on-abort
[Install]
WantedBy=multi-user.target
Then in gave the command sudo systemctl enable application.service
and then sudo systemctl start application.service
these links are helpful