[ic] Static pages to boost performance

interchange-users@icdevgroup.org interchange-users@icdevgroup.org
Tue Jun 24 14:29:00 2003


You said:
> > 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?

Sorry I didn't write the script. It is part of my hosting package from
Ed LaFrance. Did you make sure and put YOUR path_to_interchange in
there? When I said base directory, for virtual hosting, I meant your
virtual root, i.e. /home/your_domain/catalogs/your_cat you would put
the autostart file in your_domain. Also, this is working for me on
IC4.8.5, I didn't follow your original post to know what version you
were running. Perhaps this is a conflict with a newer version of IC?

Good luck!

Curt Hauge

//////////////////////////////////////////////////////////////////
// Web Design - Interchange Hosting - Small Business Consulting //
// 1644 133rd Ln NE                         www.mnwebdesign.com //
// Ham Lake, MN 55304                  www.iwantaconsultant.com //
// Phone 612-598-5530                      info@mnwebdesign.com //
//////////////////////////////////////////////////////////////////