public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] chrony logrotate script EOF error
@ 2010-08-22 10:11 Mick
  2010-08-22 10:25 ` Alex Schuster
  2010-08-22 16:25 ` Alan McKinnon
  0 siblings, 2 replies; 7+ messages in thread
From: Mick @ 2010-08-22 10:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 863 bytes --]

Hi All,

The chrony installed logrotate script keeps erroring out:
========================================================
logrotate_script: line 5: warning: here-document at line 2 delimited by end-
of-file (wanted `EOF')
Unrecognized command
========================================================

This is the script:
========================================================
/var/log/chrony/*.log {
	sharedscripts
	postrotate
                PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' 
/etc/chrony/chrony.keys`
                cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d'
                password $PASSWORD
                cyclelogs
                EOF
        endscript
}
========================================================

I do not understand the error.  Is it telling me to add backticks?  Where?
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-22 18:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-22 10:11 [gentoo-user] chrony logrotate script EOF error Mick
2010-08-22 10:25 ` Alex Schuster
2010-08-22 14:50   ` Mick
2010-08-22 16:25 ` Alan McKinnon
2010-08-22 16:44   ` Mick
2010-08-22 16:50     ` Alan McKinnon
2010-08-22 18:01       ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox