Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create bin/info in the source install to mimic datadog-agent info #481

Merged
merged 1 commit into from
May 1, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packaging/datadog-agent/source/info
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Relative cd to where this script resides
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $THIS_DIR/..
source venv/bin/activate
python agent/agent.py info
python agent/dogstatsd.py info
python agent/ddagent.py info
popd
2 changes: 2 additions & 0 deletions packaging/datadog-agent/source/setup_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ fi
sed "s/# use_pup:.*/use_pup: yes/" $dd_base/agent/datadog.conf.1 > $dd_base/agent/datadog.conf
mkdir -p $dd_base/bin
cp $dd_base/agent/packaging/datadog-agent/source/agent $dd_base/bin/agent
cp $dd_base/agent/packaging/datadog-agent/source/info $dd_base/bin/info
chmod +x $dd_base/bin/agent
chmod +x $dd_base/bin/info

# This is the script that will be used by SMF
if [ "$unamestr" = "SunOS" ]; then
Expand Down