#!/bin/sh ### #This small program is designed to kill any prosess related to cdeb2.sh and #functions as a daemon in the background by running until cdeb2 gives a exit #status of 1. { case "$1" in start) export i=1 while [ "$i" -le 100 ] do if fuser /usr/bin/cdeb2.sh; then killall cdeb2.sh else exit 0 fi i=`expr $i + 1` done ;; stop) exit 0 ;; *) echo "Usage: $0 { start | stop }" exit 1 esac } done exit 0