소스 검색

Added a timestamp and info about logging in crontab

root 7 년 전
부모
커밋
e313dc45e4
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      README.md
  2. 1 1
      dnssec-signer

+ 1 - 1
README.md

@@ -84,7 +84,7 @@ and add the following
 ```
 0 0 */3 * * /path/to/dnssec-signer
 ```
-This updates active zones every `3`'rd day. 
+This updates active zones every `3`'rd day. Append ` > /var/log/dnssec-signer` to store the last output log. Then you can open this and read the last result. There's also a timestamp produced at the start if you're wondering what time it updated the zone.
 
 ## Note
 This is only tested under Bind9 on Ubuntu 16.04.03

+ 1 - 1
dnssec-signer

@@ -167,7 +167,7 @@ function signzone {
 	return ${RET}
 }
 
-
+note_msg "date" "$(date)"
 if [[ ${EUID} -ne 0 ]]; then
 	error_msg "${USER}" "Must execute file as root."
 	exit 1