Package: cupsys
Version: 1.1.23-10
Tag: patch

The cupsys' logrotate file /etc/logrotate.d/cupsys
contains a line:
        postrotate
                invoke-rc.d --quiet cupsys restart > /dev/null && sleep 10

This starts cups even if previously stopped/disabled (for instance, i 
removed the rc2.d link). I would suggest to test for the cupsd.pid 
lockfile, as follows:

        postrotate
        # Avoid starting cups if it is stopped
                [ -e /var/run/cups/cupsd.pid ] && \
                invoke-rc.d --quiet cupsys restart > /dev/null && sleep 10

Thanks.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to