Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #914202

Bug#786757: /etc/cron.daily/logrotate: Unrecognized command

From Christian Göttsche <cgzones@googlemail.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#786757: /etc/cron.daily/logrotate: Unrecognized command
Date 2018-08-22 22:30 +0200
Message-ID <wpHVo-3v7-15@gated-at.bofh.it> (permalink)
References <ptXEd-1yv-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Control: tags -1 moreinfo

Hi,

with the appended configuration I am getting the following error messages:

    $ logrotate -f /etc/logrotate.d/test
    logrotate_script: 2: logrotate_script: eho: not found
    error: error running non-shared prerotate script for
/var/log/test/old.testlog of '/var/log/test/old.testlog '

Are you able to reproduce any non-informative error messages, like the
mentioned "Unrecognized command", from logrotate in version 3.14.0-2
and up?

Best regards
       Christian Göttsche



/var/log/test/old.testlog {
    olddir rotated
    rotate 0
    dateext
    dateformat
    daily
    missingok
    notifempty
    nocreate
    nocompress
    nosharedscripts
    prerotate
        eho $1
        exit 1
    endscript
}

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#786757: /etc/cron.daily/logrotate: Unrecognized command Christian Göttsche <cgzones@googlemail.com> - 2018-08-22 22:30 +0200

csiph-web