#!/bin/tcsh -f
# JLdL 11May10.
#
# Copyright (C) 2010 by Jorge L. deLyra <delyra@fma.if.usp.br>.
# This program may be copied and/or distributed freely. See the
# _ terms and conditions in /usr/share/doc/<package>/copyright.
#
# This script is to be executed by the cron job /etc/cron.d/dynahost;
# _ check for stray dynahost lock files in /var/lock/, and get rid
# _ of them if they are older than 10 minutes, in order to avoid
# _ locking all remote users out of the local cluster.
find /var/lock/ -name dynahostdns -and -mmin +10 -exec rm -f \{\} \;
find /var/lock/ -name dynahostnis -and -mmin +10 -exec rm -f \{\} \;
