[ic] Static pages to boost performance

Jonathan Melhuish interchange-users@icdevgroup.org
Tue Jun 24 13:41:01 2003


On Tuesday 24 June 2003 17:52, tech@mnwebdesign.com wrote:
> I would add something like this to cron also:
>
> 50 4 * * * rm -rf ~/catalogs/*/tmp/*

Okay, I've put that in, just for good measure ;-)  Although at the speed my 
Interchange server presently goes, it'll take it more than a day to generate 
a significant number of sessions :-(

> and while we're at it, you should have an autostart script in cron to
> start the Interchange daemon if it stops for some reason:
>
> 1,5,10,15,20,25,30,35,40,45,50,55 * * * * ~/./autostart >>cron.log
>
> and then make sure you have a file called autostart in your base
> directory with this in it:
>
> #!/bin/sh
> var=`ps ux | grep interchange | grep -v -c grep`
> if [ $var -eq 0 ]; then
>         ~/path_to_interchange_directory/bin/interchange -s -u
> fi

That's a good idea!  Unfortunately it says "./checkinterchange.sh: [: too many 
arguments" when I run it.  What've I done wrong?

Cheers,

Jon