소스 검색

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
 		$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