summaryrefslogtreecommitdiffstats
path: root/collectors/charts.d.plugin/charts.d.plugin.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcollectors/charts.d.plugin/charts.d.plugin.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/collectors/charts.d.plugin/charts.d.plugin.in b/collectors/charts.d.plugin/charts.d.plugin.in
index 05a63875b..a3f0aa954 100755
--- a/collectors/charts.d.plugin/charts.d.plugin.in
+++ b/collectors/charts.d.plugin/charts.d.plugin.in
@@ -281,7 +281,14 @@ run() {
if [ "z${1}" = "z-t" -a "${2}" != "0" ]; then
t="${2}"
shift 2
- timeout ${t} "${@}" 2>"${TMP_DIR}/run.${pid}"
+ case "${NETDATA_SYSTEM_OS_ID}" in
+ "alpine")
+ timeout -t ${t} "${@}" 2>"${TMP_DIR}/run.${pid}"
+ ;;
+ *)
+ timeout ${t} "${@}" 2>"${TMP_DIR}/run.${pid}"
+ ;;
+ esac
ret=$?
else
"${@}" 2>"${TMP_DIR}/run.${pid}"