#!/bin/sh

# This used to test if the executables were installed.  But that is
# perfectly redundant and supresses errors that the admin should see.

/usr/local/libexec/munin/munin-update $@ || exit 1

# The result of munin-limits is needed by munin-html but not by
# munin-graph.  So run it in the background now, it will be done
# before munin-graph.

/usr/local/libexec/munin/munin-limits $@ &

nice /usr/local/libexec/munin/munin-graph --cron $@ 2>&1 | 
	fgrep -v "*** attempt to put segment in horiz list twice"

wait

nice /usr/local/libexec/munin/munin-html $@ || exit 1
