#!/bin/sh

# Copyright (C) 2000 NEC Corporation
# All Rights Reserved.

# RCS: $Id: wbmcinit,v 1.1 2006/12/22 05:28:48 shodai Exp $

#
# Startup script for the Management Console
#
# chkconfig: 345 08 99
# description: Management Console Startup Script.

case "$1" in
  start)
	echo "Rotate log"
	/usr/sbin/logrotate /etc/logrotate.conf
	echo "Make certificate for Management Console"
	#/opt/nec/wbmc/bin/wbmc_certificate
	#echo "Make web statistics"
	#/opt/nec/wbmc/bin/wbmcwebalizer2 > /dev/null 2>&1 &
	/opt/nec/wbmc/bin/wbmc_cluster_init -s
	;;
  stop)
	;;
  status)
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: $0 {start|stop|restart|status}"
	exit 1
esac

exit 0

