Web lists-archives.com

[Samba] Logrotate




Hi!

I have one problem with my logrotate.

Samba version:

Samba 4 7.7 (compilated)

S.O.:

Ubuntu 14.04 /16.04

Samba logs file:

/opt/samba/var/

Logrotate File:

cat /etc/logrotate.d/samba

--

/opt/samba/var/log.samba

{
  rotate 10
        daily
        compress
        dateext
        size 100M
        nomail
        missingok
        notifempty
        create 644 root root
        #postrotate
        #        systemctl stop samba &> /dev/null
        #        systemctl start samba &> /dev/null
        #endscript
}

--


My problem is, when logrotate is executed, log is rotate but after , don't log messages anymore, log.samba is was"zero"., is need restart in samba, then log message is back.


Any idea?


Regards;


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba