On Fri, Feb 22, 2008, Wilson Jason wrote:

> Openpkg'ers,
>
> With the recent work on getting large file support in Squid to work I
> have finally determined the cause of another annoying problem that had
> previously eluded me.
>
> When you do an upgrade of squid there is a rpm post install script that
> restarts squid.
>
> Unfortunately the restart fails because the squid needs a bit of time to
> cleanly shutdown (approximately 30 seconds) and the script tries to
> start it back up again before the shutdown has been completed.
>
> In general, any 'openpkg rc squid restart' will fail to correctly
> restart squid.
>
> To work around this issue I added to the rc.squid stop method the
> following commands:
>     squid_pid=`cat /secomon/openpkg-3/var/squid/logs/squid.pid`
>     pwait $squid_pid
>
> As this is on Solaris the convenient pwait does the right thing for me
> (I do realise this is non-portable though).
>
> The next problem is that because rc.squid is not a configuration file,
> when I do actually upgrade squid this local change is lost.
>
> So a couple of questions:
>   is it possible to get this 'fix' included (or a portable alternative)?
>   what is the easiest way to make a similar local change permanent?

I've tried to fix it via "squid -k check" now:
http://cvs.openpkg.org/chngview?cn=39239

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to