#!/bin/bash
#you must login as ROOT
#user chn22 must exits in the BUFFER
#chkconfig: 345 99 10
#description: auto start daemon mserverF 
#
case "$1" in
 'start')
	# ustawia sciezke i uruchamia mserverF
	su chn22 -c "cd /home/chn22; ./runserverF";
	su chn22 -c "exit";
	echo "mserverF start";;
 'stop')
	pidof mserverF;
	kill $(pidof mserverF);
	echo "mserverF stop";;
esac

