Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2001 15:40:41 +0200 (CEST)
From:      Micke Josefsson <mj@isy.liu.se>
To:        jonathan michaels <jon@caamora.com.au>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: where to put pppd startup script ???? rc.conf ???
Message-ID:  <XFMail.010730154041.mj@isy.liu.se>
In-Reply-To: <20010730225150.33089@caamora.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

On 30-Jul-01 jonathan michaels wrote:
> greetings all
> 
> i've been using kernel ppp (aka pppd) for a while now and was watching
> a power-outage recovery during one of teh bad storms (losts of very
> cold winds and rain, thankfully no lightening) we have had here in a
> while.
> 
> currently, i start pppd with a script (by hand mainly) but the machine
> has been stable (its on a small ups, local australian product and i'm
> not a programmer so i've not worked out how to rejig teh many ups c
> sources to make my sola work with with any of the american ones that
> teh programes are written for).  sorry i digress.

Get hands on Ted Mittelstaedts book "The FreeBSD corporate guide". He describes
a DIY method that let external ups signal by the CD (i think) signal of the
serial port. Mail me if you need more details, I don't have the book here right
now.

> 
> where, would the pppd startup segment be best put in rc.local ?
> rc.network or rc.conf ???? i tried with rc.network but got a hung
> computer -- i tried reading up on teh booting process but the general
> "Unix" book was more a tome on sys V r3.2  than a text on berkeley unix

Put the script in /usr/local/etc/rc.d, preferably modified to accept
[start|stop] parameters. As depicted in rc(8)

           #!/bin/sh -
           #
           #    initialization/shutdown script for foobar package

           case "$1" in
           start)
                   /usr/local/sbin/foo -d && echo -n ' foo'
                   ;;
           *)
                   echo "unknown option: $1 - should be 'start'" >&2
                   ;;
           esac

/micke (again:)

> 
> some sugestions thoughts cc's appreciated (jlm at caamora dot com dot au)
> as i'm not subscribed to -questions anymore.
> 
> also can anyone recommend a book to read up on topics like this (i have
> teh greg lehey tomes, one through 2 and a ed 3 somewhere).
> 
> with regards and much thanks
> 
> jonathan 
> 
> -- 
> ================================================================
> Jonathan Michaels                   http://repaired.soon.maybe
> PO Box 144, Rosebery, NSW 1445          suffering construction anxiety
> ============================================<jon@caamora.com.au>
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

----------------------------------
Michael Josefsson, MSEE
mj@isy.liu.se

This message was sent by XFMail
running on FreeBSD 4.3-STABLE
----------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010730154041.mj>