#!/bin/sh 
#
# jabberd2 starter
#
# HISTORY
#   Creation:   2005-12-31
#   Auther:     Jun Kuwamura <http://www.ne.jp/asahi/yokohama/juk/>
#
JB2O=jabber

case $1 in
'start')
	## /usr/bin/jabberd -h
	#jabberd - jabberd wrapper script (2.0s10)
	#Usage: jabberd <options>
	#Options are:
   	#-c <file>  config file to use [default: /usr/etc/jabberd/jabberd.cfg]
   	#-D         Show debug output
   	#-b         Push into background
   	#-h         Show this help

	su - $JB2O -c "/usr/bin/jabberd -b"
	;;
'stop')
	kill `cat /usr/var/jabberd/pid/router.pid`
	;;
esac
exit 0
