瀏覽代碼

Moved lock file creation to an earlier point.

Nils Ohlmeier 23 年之前
父節點
當前提交
b17d7550f5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      etc/serresponse

+ 2 - 2
etc/serresponse

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