#!/bin/sh lockFn=/var/lock/LCK..DWSMgate [ -r $lockFn ] || { echo "hydrorad output is not being logged" exit 1 } kill `cat $lockFn`