GotSignal() {
echo
- echo "--> Got break signal, cleaning up & aborting ..."
+ echo "--> Got signal, cleaning up & aborting ..."
echo
CleanUp
echo -n "Aborted: "; date
echo
fi
-trap GotSignal SIGINT
+trap GotSignal SIGINT SIGTERM
# check and create PID file
if [ -e "$PIDFILE" ]; then