Projet

Général

Profil

Révision 4b2fcbf8

ID4b2fcbf8b9d8f995499353e0ab4195e724209a67
Parent a2b340a7
Enfant 57661e0f

Ajouté par Lars Kruse il y a plus de 8 ans

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

Voir les différences:

plugins/amavis/amavis-debian
18 18
#
19 19
# Config variables:
20 20
#       AMAVIS_LOG	- file where amavis logs are written
21
#	STATEFILE	- file which is needed to keep track of AMAVIS_LOG
22 21
#	LOGTAIL		- location of logtail
23 22
#	BC		- location of bc
24 23
#
......
27 26
#
28 27

  
29 28
AMAVIS_LOG=${logfile:-/var/log/mail.log}
30
STATEFILE=/var/lib/munin/plugin-state/amavis.offset
29
STATEFILE=$MUNIN_PLUGSTATE/amavis.offset
31 30
LOGTAIL=${logtail:-`which logtail`}
32 31
BC=${bc:-`which bc`}
33 32

  

Formats disponibles : Unified diff