[KLUG Members] squid proxy log rotate error
bill
bill at billtron.com
Wed May 2 15:55:27 EDT 2007
On Wed, 2007-05-02 at 15:24, Mike Williams wrote:
> bill wrote:
> > the killall process is rwxr-xr-x
> >
> > One thought: being as the squid.logrotate script calls bash, does
> > "nobody" need a shell? It's set up as /sbin/nologin so I'm not sure it
> > can invoke a shell.
> >
> >
> I think that's it. "su -" tries to create an environment (path, shell,
> etc) that the user would have if they logged in. User nobody can't log
> in, so that could be the problem. See if it works taking out the first
> dash.
I think you mean edit the squid.logrotate script so the line reads:
su nobody -c "/usr/bin/killall -USR1 squid >/dev/null 2>&1"
I tried that and ran it as root (instead of waiting for the cron job)
and it still reported back:
This account is currently not available.
--
PGP/GPG Public Key: https://billtronservices.com/key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20070502/1a162f24/attachment.bin
More information about the Members
mailing list