Google Groups Home
Help | Sign in
Working on FreeBSD
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Gary Doades  
View profile
 More options Apr 15, 9:41 am
From: Gary Doades <g...@gpdnet.co.uk>
Date: Tue, 15 Apr 2008 06:41:37 -0700 (PDT)
Local: Tues, Apr 15 2008 9:41 am
Subject: Working on FreeBSD
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.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Cooper  
View profile
 More options Apr 16, 6:08 pm
From: Peter Cooper <pcoo...@gmail.com>
Date: Wed, 16 Apr 2008 15:08:42 -0700 (PDT)
Local: Wed, Apr 16 2008 6:08 pm
Subject: Re: Working on FreeBSD
Excellent work, and thanks for the information! I'm going away for two
days tomorrow but will get this sorted out at the weekend. I'm also in
the middle of migrating SwitchPipe to Github so that contributions
will become a lot easier :)

Pete


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Cooper  
View profile
 More options Apr 20, 2:19 pm
From: Peter Cooper <pcoo...@gmail.com>
Date: Sun, 20 Apr 2008 11:19:41 -0700 (PDT)
Local: Sun, Apr 20 2008 2:19 pm
Subject: Re: Working on FreeBSD
Just a question..

Am I going to need to have an init script for BSD and one for Linux?
Or are the additions you've made pretty generic in terms of rc.d init
scripts?

Pete


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Doades  
View profile
 More options Apr 23, 3:29 pm
From: Gary Doades <g...@gpdnet.co.uk>
Date: Wed, 23 Apr 2008 12:29:56 -0700 (PDT)
Local: Wed, Apr 23 2008 3:29 pm
Subject: Re: Working on FreeBSD
On Apr 20, 7:19 pm, Peter Cooper <pcoo...@gmail.com> wrote:

> Just a question..

> Am I going to need to have an init script for BSD and one for Linux?
> Or are the additions you've made pretty generic in terms of rc.d init
> scripts?

> Pete

This is a  FreeBSD specific init script I'm afraid. Linux works in
quite a different way to the rc.d system of FreeBSD. At least that's
as I understand it.

As shell scripting is pretty generic, it may be possible to turn one
or the other into a generic script by testing which platform it is
running on and only executing the appropriate parts, but that's beyond
my shell scripting skills at the moment.

It may be easer just to say use one or the other in the installation
document :)

Cheers,
Gary.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google