Can confirm the same behavior on Ubuntu 16.04 LTS. Log files are rotated
by logrotate but postrotate command doesn't seem to work.

ls -ltr /var/log | tail
-rw-r----- 1 syslog   adm             0 Aug 19 06:42 kern.log
-rw-rw---- 1 root     utmp            0 Sep  1 06:49 btmp.1
-rw-r--r-- 1 root     root          252 Sep  7 17:02 memcached.log
-rw-rw-r-- 1 root     utmp        15360 Sep 29 15:43 wtmp.1
-rw-rw---- 1 root     utmp            0 Oct  1 06:41 btmp
-rw-r----- 1 syslog   adm        605488 Oct 10 11:56 mail.log.1
-rw-rw-r-- 1 root     utmp         4224 Oct 10 12:38 wtmp
-rw-rw-r-- 1 root     utmp       292876 Oct 10 12:38 lastlog
-rw-r----- 1 syslog   adm      17692156 Oct 10 13:53 auth.log.1
-rw-r----- 1 syslog   adm       3045212 Oct 10 13:53 syslog.1

postrotate command seems wrong anyway:


# cat /etc/logrotate.d/rsyslog | grep -A 2 postrotate
        postrotate
                invoke-rc.d rsyslog rotate > /dev/null
        endscript
--
        postrotate
                invoke-rc.d rsyslog rotate > /dev/null
        endscript


invoke-rc.d rsyslog rotate doesn't work:

# invoke-rc.d rsyslog rotate
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.

But in general postrotate commands don't seem to be executed at all.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/940030

Title:
  rsyslog stops working after logrotate until restarted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/940030/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to