[Unit] Description=Telegraf service container Requires=influxdb.service After=influxdb.service [Service] Restart=always TimeoutStartSec=5s ExecStart=/usr/bin/docker start -a telegraf ExecStop=/usr/bin/docker stop -t 2 telegraf [Install] WantedBy=multi-user.target