Browse code

Moved lock file creation to an earlier point.

Nils Ohlmeier authored on 12/09/2002 01:11:20
Showing 1 changed files
... ...
@@ -103,10 +103,10 @@ if [ ! -e $LOCKF ] ; then
103 103
 	
104 104
 	if [ -e $TMP ] ; then
105 105
 		$MAILCOMMAND -s "serresponse failed" $NOTIFY < $TMP
106
+		rm -f $TMP
107
+		touch $LOCKF
106 108
 		for i in $SMSNUMBERS; do
107 109
 			$SMSCMD $i "serresponse failed. please check your emails for details"
108 110
 		done
109
-		touch $LOCKF
110
-		rm -f $TMP
111 111
 	fi
112 112
 fi