Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] chrony logrotate script EOF error
Date: Sun, 22 Aug 2010 10:11:57
Message-Id: 201008221111.23277.michaelkintzios@gmail.com
1 Hi All,
2
3 The chrony installed logrotate script keeps erroring out:
4 ========================================================
5 logrotate_script: line 5: warning: here-document at line 2 delimited by end-
6 of-file (wanted `EOF')
7 Unrecognized command
8 ========================================================
9
10 This is the script:
11 ========================================================
12 /var/log/chrony/*.log {
13 sharedscripts
14 postrotate
15 PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}'
16 /etc/chrony/chrony.keys`
17 cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d'
18 password $PASSWORD
19 cyclelogs
20 EOF
21 endscript
22 }
23 ========================================================
24
25 I do not understand the error. Is it telling me to add backticks? Where?
26 --
27 Regards,
28 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] chrony logrotate script EOF error Alex Schuster <wonko@×××××××××.org>
Re: [gentoo-user] chrony logrotate script EOF error Alan McKinnon <alan.mckinnon@×××××.com>