1 |
Hi, |
2 |
I have the following file as /etc/logrotate.d/denyhosts |
3 |
/var/log/denyhosts { |
4 |
missingok |
5 |
notifempty |
6 |
create 0640 root root |
7 |
sharedscripts |
8 |
prerotate |
9 |
/etc/init.d/denyhosts stop |
10 |
endscript |
11 |
postrotate |
12 |
/etc/init.d/denyhosts start |
13 |
endscript |
14 |
} |
15 |
|
16 |
But this causes errors |
17 |
reading config info for /var/log/denyhosts |
18 |
error: denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes) |
19 |
error: denyhosts:2 unexpected text |
20 |
error: denyhosts:3 unexpected text |
21 |
error: denyhosts:4 unexpected text |
22 |
error: denyhosts:5 unexpected text |
23 |
error: denyhosts:prerotate or postrotate without endscript |
24 |
|
25 |
I appreciate any help on this. |
26 |
Many thanks, |
27 |
Helmut. |