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 <email address hidden> 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
^^-^^
That seems to work:
0 root@rackspace: /etc/logrotate. d#cp squid3 ~/etc_logrotate .d_squid3. orig /etc/logrotate. d#vim squid3 /etc/logrotate. d#logrotate -f logrotate. d_squid3. orig squid3/ *.log ' /etc/logrotate. d#logrotate -f squid3 /etc/logrotate. d#grep kill squid3
test ! -e /var/run/squid3.pid || ! kill -0 `cat squid3. pid` 2>/dev/null || /usr/sbin/squid3 -k rotate /etc/logrotate. d#ps axw|grep squid3 /etc/logrotate. d#cat /var/run/squid3.pid /etc/logrotate. d#
0 root@rackspace:
0 root@rackspace:
/root/etc_
squid: ERROR: Could not send signal 10 to process 13273: (3) No such process
error: error running shared postrotate script for '/var/log/
1 root@rackspace:
0 root@rackspace:
/var/run/
0 root@rackspace:
13357 pts/0 S+ 0:00 grep --color=auto squid3
0 root@rackspace:
13273
0 root@rackspace:
On 15 November 2012 17:21, Robie Basak <email address hidden> wrote:
> (the replacement is all on one line) /bugs.launchpad .net/bugs/ 1073478 /bugs.launchpad .net/ubuntu/ +source/ squid3/ +bug/1073478/ +subscriptions
>
> ** 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:/
>
> Title:
> squid3 logrotate fails when squid is not running
>
> To manage notifications about this bug go to:
>
> https:/
>
--
.~.
/V\ Jan Groenewald
/( )\ www.aims.ac.za
^^-^^