Browse Source

Added a timestamp and info about logging in crontab

root 6 years ago
parent
commit
e313dc45e4
2 changed files with 2 additions and 2 deletions
  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