Hello,

this week I installes chroony on my box. Today I got a message from
the cron-deamon:

,----
| Subject: Anacron job 'cron.weekly'
|
| /etc/cron.weekly/chrony:
| awk: cannot open /etc/chrony/chrony.keys (No such file or directory)
| run-parts: /etc/cron.weekly/chrony exited with return code 2
`----

the script looks like this:

,----[ /etc/cron.weekly/chrony ]
| #!/bin/sh
| # Log rotation script for chrony John Hasler <[EMAIL PROTECTED]>
| # This script is published under the same license as chrony.
| 
| set -e
| 
| [ -d /var/log/chrony/. ] || exit 0
| [ -x /usr/sbin/chronyd ] || exit 0
| umask 022
| cd /var/log/chrony
| [ "`ls -1A *.log 2>/dev/null`" ] || exit 0
| for FILE in *.log
|         do
|                 savelog -c 7 $FILE > /dev/null
| done
| PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys`
| cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d'
| password $PASSWORD
| cyclelogs
| EOF
| exit 0
`----

my System is Debian testing. Do I need chrony.keys? What should it
look like? And where can I get it?

Regards,

Henrik

-- 
GnuPG-Key now available on public keyservers  -  http://www.gnupg.org/

Reply via email to