#!/bin/bash
#
# to clean file .obsinfo-lock in case
# process obsinfo-cep2.py was aborted
#
username="pulsp"
is_obsinfo=`ps aux | grep $username | grep obsinfo | grep -v grep | egrep -v "clean-obsinfo-lock" | wc -l`
if [[ $is_obsinfo -eq 0 ]]; then
 rm -f /home/$username/.obsinfo-lock 
fi
