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.
This commit is contained in:
Lars Kruse 2020-07-19 15:41:53 +02:00
parent 9d596643cc
commit 670a871835
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ iptables -A INPUT -p tcp --dport munin --source 10.42.42.25 -j ACCEPT
## Test ## Test
To test the script, just run it (`/usr/bin/local/muninlite`): To test the script, just run it (`/usr/local/bin/muninlite`):
```shell ```shell
$ /usr/local/bin/muninlite $ /usr/local/bin/muninlite
# munin node at localhost.localdomain # munin node at localhost.localdomain

View file

@ -26,7 +26,7 @@ if [ -f /sbin/inetd ]; then
echo "muninlite can not start as lrrd is already in use" echo "muninlite can not start as lrrd is already in use"
exit 1 exit 1
else 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 fi
PID=$(ps | grep -v grep | grep inetd | sed 's/^ \{1,\}//' | cut -d\ -f1) PID=$(ps | grep -v grep | grep inetd | sed 's/^ \{1,\}//' | cut -d\ -f1)
if [ ! -z "$PID" ]; then if [ ! -z "$PID" ]; then