#!/bin/bash
#
# sccl_del_lockfile
#
# Lockfile loeschen
##################################################################
#
cd ${0%/*}
if [[ $PWD != */bin ]]; then
  cd bin
fi
#
if [[ -f /etc/sccl/sccl.conf ]]; then
  . /etc/sccl/sccl.conf
  #
  if [[ -z "$LOCKDIR" ]]; then
    echo "ERROR: no LOCKDIR"
    exit 1
  fi
  #
  rm -f "$LOCKDIR/$1"
else
  echo "Cluster nicht konfiguriert."
fi
