From owner-freebsd-questions Mon Jul 30 6:40:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from isy.liu.se (isy.liu.se [130.236.48.10]) by hub.freebsd.org (Postfix) with ESMTP id 7187337B403 for ; Mon, 30 Jul 2001 06:40:18 -0700 (PDT) (envelope-from mj@isy.liu.se) Received: from lagrange.isy.liu.se (lagrange.isy.liu.se [130.236.49.127]) by isy.liu.se (8.11.4/8.11.4) with ESMTP id f6UDe5Q03841; Mon, 30 Jul 2001 15:40:05 +0200 (MET DST) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010730225150.33089@caamora.com.au> Date: Mon, 30 Jul 2001 15:40:41 +0200 (CEST) From: Micke Josefsson To: jonathan michaels Subject: RE: where to put pppd startup script ???? rc.conf ??? Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 > ============================================ > > > 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