Comment 2 for bug 1953719

Revision history for this message
Harvald (harvald) wrote :

Command: /usr/bin/smbcontrol winbindd reload-config
return value 1 if there is no winbind process.

I believe solution maybe to change in /etc/logrotate.d/winbind
from

        postrotate
                if [ -x /usr/bin/smbcontrol ]; then
                        /usr/bin/smbcontrol winbindd reload-config
                elif [ -f /run/samba/winbindd.pid ]; then
                        kill -HUP `cat /run/samba/winbindd.pid`
                fi
        endscript

to

        postrotate
                if [ -f /run/samba/winbindd.pid ]; then
                        if [ -x /usr/bin/smbcontrol ]; then
                                /usr/bin/smbcontrol winbindd reload-config
                        else
                                kill -HUP `cat /run/samba/winbindd.pid`
                        fi
                fi
        endscript