#! /bin/sh

### BEGIN INIT INFO
# Provides:             sdsvrd
# Required-Start:       
# Required-Stop:        
# Default-Start:        2 3 4 5
# Default-Stop:         
# Short-Description:    safedog server
### END INIT INFO

test -x `which sdsvrd` || exit 0
test -x `which sdstart` || exit 0
test -x `which sdcmd` || exit 0
test -x `which sdui` || exit 0
test -x `which kill` || exit 0
test -x `which netstat` || exit 0
test -x `which grep` || exit 0
test -x `which awk` || exit 0
touch /etc/safedog/monitor/filemonit.txt
touch /etc/safedog/monitor/processmonit.txt
touch /etc/safedog/monitor/cpumonit.txt
touch /etc/safedog/monitor/memorymonit.txt
touch /etc/safedog/monitor/diskvolumemonit.txt
touch /etc/safedog/monitor/bakforsizemonit.txt


killall sdsvrd >/dev/null 2>&1

sdsvrd

exit 0
