chrony vs. cron

2001-05-27 Thread Henrik Grotjahn
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/



Re: chrony vs. cron

2001-05-27 Thread Wayne Topa

Subject: chrony vs. cron
Date: Sun, May 27, 2001 at 01:47:49PM +0200

In reply to:Henrik Grotjahn

Quoting Henrik Grotjahn([EMAIL PROTECTED]):
 Hello,
 
 this week I installes chroony on my box. Today I got a message from
 the cron-deamon:
 
 my System is Debian testing. Do I need chrony.keys? What should it
 look like? And where can I get it?
 

VT1 root-2.2r3-prince:~# grep chrony.keys /usr/share/doc/chrony/*
/usr/share/doc/chrony/README.Debian: Created default /etc/chrony/chrony.conf, 
/etc/chrony/chrony.keys,
/usr/share/doc/chrony/README.Debian: installed in chrony.keys as key 1 (unless 
chrony.keys already has
/usr/share/doc/chrony/README.Debian: /etc/cron.weekly/chrony read key 1 from 
/etc/chrony/chrony.keys and use it
/usr/share/doc/chrony/chrony.html:keyfile /etc/chrony.keys
/usr/share/doc/chrony/chrony.html:The Debian package puts a default key in 
TT`/etc/chrony/chrony.keys'/TT.
/usr/share/doc/chrony/chrony.html:create a file TT`/etc/chrony.keys'/TT 
containing a single line
/usr/share/doc/chrony/chrony.html:keyfile /etc/chrony.keys
/usr/share/doc/chrony/chrony.html:keyfile /etc/chrony.keys
/usr/share/doc/chrony/chrony.html:keyfile /etc/chrony.keys
/usr/share/doc/chrony/chrony.html:keyfile /etc/chrony.keys
/usr/share/doc/chrony/chrony.html:keyfile /etc/chrony.keys

-- 
Information Center, n.:
  A room staffed by professional computer people whose job it is
  to tell you why you cannot have the information you require.
___