Advertisement
Guest User

Untitled

a guest
Oct 31st, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. From ac74c211646214add9aaac5acab54a8e485b567f Mon Sep 17 00:00:00 2001
  2. From: Matt Weber <matthew.weber@rockwellcollins.com>
  3. Date: Wed, 30 Oct 2019 23:09:52 -0500
  4. Subject: [PATCH] configure: install cache and log if different paths
  5.  
  6. This patch prevents both locations (/var/cache and /var/log) which point
  7. to ../tmp/ from causing a install race condition as they both write .keep
  8. files.
  9.  
  10. Removes the netdata subfolder in /var/log as it won't actually be used on
  11. target as /var/log is mapped to ../tmp/ which is mounted tmpfs.
  12.  
  13. Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
  14. ---
  15. configure.ac | 4 ++--
  16. 1 file changed, 2 insertions(+), 2 deletions(-)
  17.  
  18. diff --git a/configure.ac b/configure.ac
  19. index ea91a72..b7e22fc 100644
  20. --- a/configure.ac
  21. +++ b/configure.ac
  22. @@ -1062,13 +1062,13 @@ AC_DEFINE_UNQUOTED([NETDATA_USER], ["${with_user}"], [use this user to drop priv
  23.  
  24. varlibdir="${localstatedir}/lib/netdata"
  25. registrydir="${localstatedir}/lib/netdata/registry"
  26. -cachedir="${localstatedir}/cache/netdata"
  27. +cachedir="${localstatedir}/lib/netdata/cache"
  28. chartsdir="${libexecdir}/netdata/charts.d"
  29. nodedir="${libexecdir}/netdata/node.d"
  30. pythondir="${libexecdir}/netdata/python.d"
  31. configdir="${sysconfdir}/netdata"
  32. libconfigdir="${libdir}/netdata/conf.d"
  33. -logdir="${localstatedir}/log/netdata"
  34. +logdir="${localstatedir}/log"
  35. pluginsdir="${libexecdir}/netdata/plugins.d"
  36.  
  37. AC_SUBST([build_target])
  38. --
  39. 2.17.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement