Created
July 14, 2014 22:27
-
-
Save kelseyhightower/55aa36f9417c9c4f0697 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coreos: | |
units: | |
- name: dd-agent.service | |
command: start | |
content: | | |
[Unit] | |
Description=Datadog Agent | |
Author=CoreOS | |
After=docker.service | |
[Service] | |
Restart=always | |
ExecStart=docker run --privileged --name ddagent \ | |
-h `hostname` -e API_KEY=`etcdctl get ddapikey` datadog/docker-dd-agent | |
ExecStop=/usr/bin/docker stop -t 2 ddagent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment