#!/bin/sh 
#
# checks for existence of a process named /etc/iscan/isdelvd
# an absence the lockfile /etc/iscan/isdelv.boot.lock is removed
# and /etc/iscan/isdelvd ist started
#
# to be put into crontab:
# 32 * * * * root /client/sbin/watch-isdelvd
#
# c.r. Sat Mar  6 13:49:13 CET 2004
# 

if ! ps xa | awk 'BEGIN{ec=1} $5 ~ /^\/etc\/iscan\/isdelvd$/ {ec=0}END{exit ec}' ; then
	rm /etc/iscan/isdelv.boot.lock
	/etc/iscan/isdelvd
fi
