#! /bin/sh

. /etc/init.d/functions.sh

FILE=/var/cache/statuscache/statuscache.shmid

case "$1" in
	start)
		begin "Initializing statuscache"
		if [ ! -f $FILE ]; then
			# This command will return an error message since
			# there isn't a "dummy.dummy" group. However, it will
			# create the cache, which is what we want.
			statuscacheclient get RAW dummy.dummy > /dev/null 2>&1
		fi
		[ -f $FILE ] || end 1 "Failed to create the statuscache!"
		end $?
		;;
	*)
		error "Usage: $0 start"
		;;
esac

exit 0
