If anyone is interested I have managed to get switchpipe (1.04)
working on FreeBSD 6.2/7.0
During setup the only thing that doesn't work according to the
instructions is the automatic installation of the required gems
because FreeBSD doesn't have a sudo command by default. You can either
intall sudo from ports or just install the gems manually first. The
latter seems easier!
Other than that it all works perfectly.
I've also generated a simple startup script to start switchpipe at
boot as a replacement for the supplied initdscript. Just drop this
into /usr/local/etc/rc.d and make it executable.
------------ script start ---------------------------
#!/bin/sh
#
# switchpipe: Backend Web application controller and proxy
#
# chkconfig: 345 96 99
# description: http://switchpipe.org/
# switchpipe for rc.d usage
# $Id$
# PROVIDE: switchpipe
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
. /etc/rc.subr
name="switchpipe"
SWITCHPIPE_PATH="/usr/local/switchpipe"
SWITCHPIPE_RUNNER="$SWITCHPIPE_PATH/script/switchpipe"
PATH=$PATH:/usr/local/bin:/opt/local/bin
start_cmd="start"
stop_cmd="stop"
extra_commands="restart"
# Sanity checks.
[ -x $SWITCHPIPE_RUNNER ] || exit 0
start() {
echo "Starting switchpipe daemon.."
$SWITCHPIPE_RUNNER start
}
stop() {
echo "Stopping switchpipe daemon.."
$SWITCHPIPE_RUNNER stop
sleep 2
}
load_rc_config $name
run_rc_command "$1"
------------ script end ---------------------
Cheers,
Gary.