That seems to work:

0 root@rackspace:/etc/logrotate.d#cp squid3 ~/etc_logrotate.d_squid3.orig
0 root@rackspace:/etc/logrotate.d#vim squid3
0 root@rackspace:/etc/logrotate.d#logrotate -f
/root/etc_logrotate.d_squid3.orig
squid: ERROR: Could not send signal 10 to process 13273: (3) No such process
error: error running shared postrotate script for '/var/log/squid3/*.log '
1 root@rackspace:/etc/logrotate.d#logrotate -f squid3
0 root@rackspace:/etc/logrotate.d#grep kill squid3
                 test ! -e /var/run/squid3.pid || ! kill -0 `cat
/var/run/squid3.pid` 2>/dev/null || /usr/sbin/squid3 -k rotate
0 root@rackspace:/etc/logrotate.d#ps axw|grep squid3
13357 pts/0    S+     0:00 grep --color=auto squid3
0 root@rackspace:/etc/logrotate.d#cat /var/run/squid3.pid
13273
0 root@rackspace:/etc/logrotate.d#



On 15 November 2012 17:21, Robie Basak <1073...@bugs.launchpad.net> wrote:

> (the replacement is all on one line)
>
> ** Changed in: squid3 (Ubuntu)
>        Status: New => Triaged
>
> ** Changed in: squid3 (Ubuntu)
>    Importance: Undecided => Medium
>
> ** Summary changed:
>
> - squid3 does not clean up pid file
> + squid3 logrotate fails when squid is not running
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1073478
>
> Title:
>   squid3 logrotate fails when squid is not running
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1073478/+subscriptions
>


-- 
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid3 in Ubuntu.
https://bugs.launchpad.net/bugs/1073478

Title:
  squid3 logrotate fails when squid is not running

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to