--- "adrian.wells" <adrian.wells@sidcot.org.uk> wrote:
Had a look in init.d ... Scary!
Umm, no :) It is not :)
I may be easily scared - the scripts looked overly complicated, why not just a program location and name?
Heh -- because most of what you see there is designed to be bullet proof,
Sorry exe meaning an executable rather than specifically a windows program. We tend to call the "applications"
We? :-) You can call then that in windows too! :-)
When squid installs, it usually has a script file in:
/etc/init.d
such that:
/etc/init.d/squid start
Can't see it, I'd already looked
can be issued.
This is done at Init usually.
You might also want to edit the file "/etc/rc.config" and set SQUID_START=Yes
Isn't this set up when installing the SuSE RPM of squid? How does it know where I put Squid?
Right, I'll assume that you compiled squid from source, and not from an RPM. In that case, you have two options.
Either you can add a line thus into /etc/init.d/boot.local:
squidctl start
--or--
squid
Alternatively, you can use this script that I developed just a minute ago:
------------------------------------------------------------------------ #!/bin/sh # # Start or stop squid daemon #
OPTS='-D'
case "$1" in start) start-stop-daemon --start --verbose --exec /usr/local/squid/bin/squid -- ${OPTS} & ;; stop) start-stop-daemon --stop --verbose --exec /usr/local/squid/bin/squid ;; *) echo "Usage: /etc/init.d/squid {start|stop}" exit 1 esac
exit 0 --------------------------------------------------------------------------
Thanks for this Thomas, off to play :-) Kind regards Adrian ----- Original Message ----- From: Thomas Adam <thomas_adam16@yahoo.com> To: adrian.wells <adrian.wells@sidcot.org.uk>; <derek@lagham.uklinux.net> Cc: <suse-linux-uk-schools@suse.com> Sent: Thursday, July 10, 2003 3:29 PM Subject: Re: [suse-linux-uk-schools] Help please with Samba -
This assumes that you have the "start-stop-daemon" program available.
HTH,
-- Thomas Adam
===== Thomas Adam
"The Linux Weekend Mechanic" -- www.linuxgazette.com
________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com For additional commands, e-mail: suse-linux-uk-schools-help@suse.com