Browse Source

Moved lock file creation to an earlier point.

Nils Ohlmeier 23 years ago
parent
commit
b17d7550f5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      etc/serresponse

+ 2 - 2
etc/serresponse

@@ -103,10 +103,10 @@ if [ ! -e $LOCKF ] ; then
 	
 	if [ -e $TMP ] ; then
 		$MAILCOMMAND -s "serresponse failed" $NOTIFY < $TMP
+		rm -f $TMP
+		touch $LOCKF
 		for i in $SMSNUMBERS; do
 			$SMSCMD $i "serresponse failed. please check your emails for details"
 		done
-		touch $LOCKF
-		rm -f $TMP
 	fi
 fi