Last active
January 9, 2020 13:58
-
-
Save palazzem/250286637fea158ec1f89fcb10d40973 to your computer and use it in GitHub Desktop.
Datadog Agent ARMv7 post-build
This file contains 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
# Install the Datadog Agent | |
mkdir -p /opt/datadog-agent/ | |
mkdir -p /var/log/datadog/ | |
mv ~/agent-armv7-package/agent /opt/datadog-agent/ | |
mv ~/agent-armv7-package/dist /opt/datadog-agent/ | |
mv ~/agent-armv7-package/datadog-agent /etc/ | |
# Create dd-agent user and set permissions | |
addgroup dd-agent | |
adduser --system --no-create-home --disabled-password --ingroup dd-agent dd-agent | |
chown -R dd-agent:dd-agent /etc/datadog-agent/ /opt/datadog-agent/ /var/log/datadog/ | |
chmod g+r,g+w,g+X -R /etc/datadog-agent/ /var/log/datadog/ |
This file contains 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
# Create systemd run script: /lib/systemd/system/datadog-agent.service | |
[Unit] | |
Description="Datadog Agent" | |
After=network.target | |
[Service] | |
Type=simple | |
PIDFile=/opt/datadog-agent/run/agent.pid | |
User=dd-agent | |
Restart=on-failure | |
ExecStart=/opt/datadog-agent/agent start -p /opt/datadog-agent/run/agent.pid | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an unofficial post-install script, to install an Agent ARMv7 build in your RaspberryPI. For more details check: https://github.com/palazzem/datadog-armv7-builder/