#!/bin/sh
#****************************************************************
# *	Copyright (C) 2003, Wistron Inc.  All Rights Reserved.
# *	File Name:		pegasusd
# *	Author:			Jerry Zhou
# *	Create Time: 	2003-08-15 11:29:42
# *	Last Update: 	2003-08-15 11:29:42
#****************************************************************
lock_file=/var/lock/subsys/pegasusd

case $1 in
	start)
		/usr/bin/pegasusdagent & 1>/dev/null 2>/dev/null
		;;
	stop)
		if [ -e $lock_file ] ; then
			pid=`cat $lock_file`
			kill -9 $pid 2>/dev/null
		else
			killall pegasusdagent 2>/dev/null
		fi
		rm -f $lock_file
		;;
esac

exit 0