Koozali.org: home of the SME Server

General Question about templates

Patrick Fortin-Ducharme

General Question about templates
« on: August 16, 2001, 12:10:59 AM »
Hi,

1.  I would like to tell to E-Smith how to reapply Original Templates of a service (Squid).   I want it to reload the original configuration...

2. Maybe someone can tell me if you have only 2 files in your /etc/e-smith/templates/etc/squid/squid.conf ?  I only got template-begin and template-end.  I would like to know if I need more files to be like the original Setup.  If so, please e-mail me theses files at patrick@goldstarqc.dyndns.org .

Thank you.

Lloyd Keen

Re: General Question about templates
« Reply #1 on: August 16, 2001, 06:03:10 PM »
That's all I have as well and I haven't played with squid. Here are the file sizes, permissions etc from /etc/e-smith/templates/etc/squid/squid.conf
drwxr-xr-x    2 root     root         4096 Jul  5 12:18 .
drwxr-xr-x    3 root     root         4096 Jul  5 12:18 ..
-rw-r--r--    1 root     root        66722 Jan 26  2001 template-begin
-rw-r--r--    1 root     root          140 May 14  2000 template-end

David Brown

Re: General Question about templates
« Reply #2 on: August 16, 2001, 08:38:16 PM »
Standard e-smith install only punt template-begin and template-end for squid.conf templates.  Template-begin, as you can see, has a default squid.conf file, which would pretty much set squid to run in it's default mode, except nearly every tag is commented out.  If you want to add custimizations to how squid opperates, be carefull about how you build your template fragments so you can get all the information in the final squid.conf file.  In particular, I had problems when I tried to tweak the cache_dir tag to change the size of the cache.  The default line is:
cache_dir /var/spool/squid 100 16 256

and it needs to read:
cache_dir ufs /var/spool/squid 100 16 256

where ufs describes the format of the cache.  Without this, you can't get squid to run properly.

Patrick Fortin-Ducharme

Re: General Question about templates
« Reply #3 on: August 16, 2001, 10:19:03 PM »
How to do this modification ??   Please, send-me your template modified of this.

Pat