Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jun 2005 07:35:46 -0600
From:      Mark Gulbrandsen <thelifecycle@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: squid rc startup
Message-ID:  <7044b8ca05060206356c0bba3c@mail.gmail.com>
In-Reply-To: <781353165.20050602090850@hexren.net>
References:  <7044b8ca05060122466f3a268f@mail.gmail.com> <781353165.20050602090850@hexren.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/2/05, Hexren <me@hexren.net> wrote:
> > I cannot get squid to startup automatically, and I'm lost. I've looked
> > in the handbook and google'd this: Nothing is working.
>=20
> > /etc/rc.conf does have squid_enable=3D"yes".
>=20
> > I can start squid manualy using
>=20
> > /usr/local/etc/rc.d/squid.sh start
>=20
> > Can someone give me a clue?
>=20
> > Thanks,
>=20
> > Mark
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd=
.org"
>=20
> ---------------------------------------------
>=20
> Really shooting in the dark here.
>=20
> Is the default configuration file /usr/local/etc/squid/squid.conf
> readable by the squid user ?
>=20
> And is /usr/local/squid/logs (that is a dir) there ?
>=20
> Does /var/log/messages (or $dmesg) have anything squid related after
> boot up ?
>=20
> Regards
> Hexren
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>=20
I should've provided more information. It was late and I was half
asleep. Sorry. Here it is:

yoda# ll /usr/local/etc/rc.d/
total 2
-r-xr-xr-x  1 root  wheel  1299 Apr  3 19:19 squid.sh
yoda#
yoda# cat /etc/rc.conf


# -- sysinstall generated deltas -- # Mon May 30 09:01:59 2005
# Created: Mon May 30 09:01:59 2005
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
gateway_enable=3D"YES"
linux_enable=3D"YES"
moused_enable=3D"YES"
sshd_enable=3D"YES"
usbd_enable=3D"YES"
pf_enable=3D"YES"
pf_rules=3D"/etc/pf.conf"
pf_flags=3D""
pflog_enable=3D"YES"
pflog_logfile=3D"/var/log/pflog"
pflog_flags=3D""
ifconfig_ed0=3D"inet 192.168.71.1  netmask 255.255.255.0"
ifconfig_rl0=3D"DHCP"
hostname=3D"yoda.sigcode.com"
squid_enable=3D"yes"

yoda# uname -a
FreeBSD yoda.sigcode.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May
8 10:21:06 UTC 2005
root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
yoda#



I am able to start it manually and use it. For example, I am using it
right now to access my gmail.com webmail account, but it didn't start
automatically at boot; I had to start it manually. Therefore, it is
configured correctly and works. It just won't start automatically on
boot.

If squid_enable=3D"YES" (mind the case), then it won't start manually eithe=
r.

Can anyone help me force squid to start on boot like sshd does?

Regards,

Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7044b8ca05060206356c0bba3c>