telegraf - running as a daemon


By default, telegraf comes as a tar/zip file which are not installed into a specific folder. As part the linux way of doing things, packages are placed in /user/local folder.

I needed to configure telegraf as my daemon. So i used the following conf and place it under /etc/systemd/system

[Unit]
Description=telegraf.servicee

[Service]
ExecStart=/usr/local/bin/telegraf --config /usr/local/etc/telegraf/telegraf.conf

[Install]
WantedBy=multi-user.target:

To reload and re-run all the daemon. 

sudo systemctl daemon-reload

To start a single service 

systemctl start telegraf.service

To stop the status 

systemctl status telegraf.service

To get the status 

systemctl status telegraf.service



Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error