Subject: issue with squid_flags
To: None <pkgsrc-users@netbsd.org>
From: Joel CARNAT <joel@carnat.net>
List: pkgsrc-users
Date: 06/20/2006 22:27:19
--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline

Hi,

I'm trying to have squid log through syslog.
I set squid flags in /etc/rc.conf as follow:
########################################################################
squid=YES
squid_flags="-s -l LOCAL5"
########################################################################

But squid keeps starting without those flags.
It only uses the "command_args".
Debugging the start script, I can'get why it does not use my _flags even
if it sees them:
########################################################################
+ eval rc_flags=$squid_flags
+ rc_flags=-s -l LOCAL5
+ eval _chdir=$squid_chdir _chroot=$squid_chroot _nice=$squid_nice
_user=$squid_user _group=$squid_group _groups=$squid_groups
_systrace=$squid_systrace
+ _chdir= _chroot= _nice= _user= _group= _groups= _systrace=
+ [ -n  ]
+ [ -n squid -a start != rcvar ]
+ checkyesno squid
+ eval _value=$squid
+ _value=YES
+ return 0
+ eval rc_pid=$(check_pidfile /var/run/squid.pid /usr/pkg/sbin/squid )
+ check_pidfile /var/run/squid.pid /usr/pkg/sbin/squid
+ _pidfile=/var/run/squid.pid
+ _procname=/usr/pkg/sbin/squid
+ _interpreter=
+ [ -z /var/run/squid.pid -o -z /usr/pkg/sbin/squid ]
+ [ ! -f /var/run/squid.pid ]
+ return
+ rc_pid=
+ [ start != start ]
+ eval _cmd=$start_cmd _precmd=$start_precmd _postcmd=$start_postcmd
+ _cmd=/usr/pkg/sbin/squid -Y -f /usr/pkg/etc/squid/squid.conf _precmd=
_postcmd=
+ [ -n /usr/pkg/sbin/squid -Y -f /usr/pkg/etc/squid/squid.conf ]
+ eval
+ eval /usr/pkg/sbin/squid -Y -f /usr/pkg/etc/squid/squid.conf
+ /usr/pkg/sbin/squid -Y -f /usr/pkg/etc/squid/squid.conf
+ eval
+ return 0
########################################################################

Anyone knows why I fail changing the starting flags?
TIA,
	Jo


--Q68bSM7Ycu6FN28Q
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEmFon0/VH7L7F7Y4RAtzHAJwKBu0FFBiW6yRyhLvK7lFoqCdVxwCaAgh3
nHBKbyGRqUiU4e+7iyZL6ME=
=bli3
-----END PGP SIGNATURE-----

--Q68bSM7Ycu6FN28Q--