summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-28 14:38:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-28 14:38:58 +0000
commitfa4ece01aed54c9a146af868be0d3db611ded229 (patch)
tree319cffc5f6c2abd7cce514383716153469fc6295 /system
parentNew upstream version 1.11.0+dfsg (diff)
downloadnetdata-fa4ece01aed54c9a146af868be0d3db611ded229.tar.xz
netdata-fa4ece01aed54c9a146af868be0d3db611ded229.zip
New upstream version 1.11.1+dfsgupstream/1.11.1+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--system/edit-config7
-rwxr-xr-xsystem/edit-config.in7
-rw-r--r--system/netdata-openrc.in2
3 files changed, 14 insertions, 2 deletions
diff --git a/system/edit-config b/system/edit-config
index 1696f9f3..e7f50e76 100644
--- a/system/edit-config
+++ b/system/edit-config
@@ -4,7 +4,12 @@
file="${1}"
-EDITOR="${EDITOR-vi}"
+if [ "$(command -v editor)" ] ; then
+ EDITOR="${EDITOR-editor}"
+else
+ EDITOR="${EDITOR-vi}"
+fi
+
[ -z "${NETDATA_USER_CONFIG_DIR}" ] && NETDATA_USER_CONFIG_DIR="/usr/local/etc/netdata"
[ -z "${NETDATA_STOCK_CONFIG_DIR}" ] && NETDATA_STOCK_CONFIG_DIR="/usr/local/lib/netdata/conf.d"
diff --git a/system/edit-config.in b/system/edit-config.in
index 1b86549f..abfd5a45 100755
--- a/system/edit-config.in
+++ b/system/edit-config.in
@@ -4,7 +4,12 @@
file="${1}"
-EDITOR="${EDITOR-vi}"
+if [ "$(command -v editor)" ] ; then
+ EDITOR="${EDITOR-editor}"
+else
+ EDITOR="${EDITOR-vi}"
+fi
+
[ -z "${NETDATA_USER_CONFIG_DIR}" ] && NETDATA_USER_CONFIG_DIR="@configdir_POST@"
[ -z "${NETDATA_STOCK_CONFIG_DIR}" ] && NETDATA_STOCK_CONFIG_DIR="@libconfigdir_POST@"
diff --git a/system/netdata-openrc.in b/system/netdata-openrc.in
index e0070526..2acf282e 100644
--- a/system/netdata-openrc.in
+++ b/system/netdata-openrc.in
@@ -35,7 +35,9 @@ depend() {
use logger
need net
after ${NETDATA_START_AFTER_SERVICES}
+}
+start_pre() {
checkpath -o ${NETDATA_OWNER} -d @localstatedir_POST@/cache/netdata @localstatedir_POST@/run/netdata
}