Révision 4b2fcbf8
replace hard-coded paths (e.g. '/var/lib/munin/plugin-state') with '$MUNIN_PLUGSTATE'
see http://guide.munin-monitoring.org/en/latest/plugin/env.html
| plugins/qmail/spamdyke | ||
|---|---|---|
| 29 | 29 |
|
| 30 | 30 |
MAIL_LOG=${logfile:-/var/log/mail.info}
|
| 31 | 31 |
LOGTAIL=${logtail:-`which logtail`}
|
| 32 |
STATEFILE=/var/lib/munin/plugin-state/spamdyke.offset
|
|
| 32 |
STATEFILE=$MUNIN_PLUGSTATE/spamdyke.offset
|
|
| 33 | 33 |
|
| 34 | 34 |
if [ "$1" = "autoconf" ]; then |
| 35 | 35 |
if [ -f "${MAIL_LOG}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then
|
Formats disponibles : Unified diff