From 670a871835f5d71de1295efe918719269ef62a2b Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Sun, 19 Jul 2020 15:41:53 +0200 Subject: [PATCH] Use /usr/local/bin/muninlite consistently in examples Packagers (e.g. for OpenWrt) usually pick a different path (e.g. /usr/bin/muninlite or /usr/sbin/muninlite), but a native installation from source should point to /usr/local/... by default. The change affects only examples, thus it should do no harm. --- README.md | 2 +- examples/post-muninlite.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 832edcb..690aff5 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ iptables -A INPUT -p tcp --dport munin --source 10.42.42.25 -j ACCEPT ## Test -To test the script, just run it (`/usr/bin/local/muninlite`): +To test the script, just run it (`/usr/local/bin/muninlite`): ```shell $ /usr/local/bin/muninlite # munin node at localhost.localdomain diff --git a/examples/post-muninlite.ini b/examples/post-muninlite.ini index f255a5d..9d48c0f 100644 --- a/examples/post-muninlite.ini +++ b/examples/post-muninlite.ini @@ -26,7 +26,7 @@ if [ -f /sbin/inetd ]; then echo "muninlite can not start as lrrd is already in use" exit 1 else - echo "lrrd stream tcp nowait root /usr/bin/muninlite" >> /etc/inetd.conf + echo "lrrd stream tcp nowait root /usr/local/bin/muninlite" >> /etc/inetd.conf fi PID=$(ps | grep -v grep | grep inetd | sed 's/^ \{1,\}//' | cut -d\ -f1) if [ ! -z "$PID" ]; then