diff options
author | Maryam Tahhan <maryam.tahhan@intel.com> | 2017-11-20 13:22:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-20 13:22:56 +0000 |
commit | dde33f975509dc47fe580a59f5ce3b615be23116 (patch) | |
tree | 7314e2acd3bff3cf780359da022ceeded0efd833 /src/collectd/Makefile | |
parent | 8e44b29f6eca84e41aa8a5f3be5d006340d66d89 (diff) | |
parent | 810dac49e96193b447d231d25d6522eef2e62d02 (diff) |
Merge "docker: Added docker container for running collectd"
Diffstat (limited to 'src/collectd/Makefile')
-rw-r--r-- | src/collectd/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/collectd/Makefile b/src/collectd/Makefile index e09aca3b..decb8e84 100644 --- a/src/collectd/Makefile +++ b/src/collectd/Makefile @@ -69,12 +69,14 @@ force_make: $(WORK_DIR)/Makefile force_install: $(AT)$(MAKE) -C $(WORK_DIR) install +ifndef DOCKER $(AT)cp $(WORK_DIR)/contrib/systemd.collectd.service /etc/systemd/system/ $(AT)mv /etc/systemd/system/systemd.collectd.service /etc/systemd/system/collectd.service $(AT)sed -i -e 's/ExecStart=\/usr\/sbin\/collectd/ExecStart=\/opt\/collectd\/sbin\/collectd/g' /etc/systemd/system/collectd.service $(AT)sed -i -e 's/CapabilityBoundingSet=/CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_RAWIO CAP_SYS_ADMIN/g' /etc/systemd/system/collectd.service $(AT)sed -i -e 's|Environment=\(.*\)|Environment=XDG_CACHE_HOME='$(XDG_CACHE_HOME_DIR)' \1|g' /etc/systemd/system/collectd.service $(AT)systemctl daemon-reload +endif $(AT)sudo ./ovs_pmd_stats_config.sh $(AT)sudo ./snmp_mib_config.sh $(AT)sudo ./include_config.sh |