From owner-freebsd-questions Sat Jan 13 11:32:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 460D537B400 for ; Sat, 13 Jan 2001 11:32:33 -0800 (PST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.9.3/8.9.3) with SMTP id OAA64943; Sat, 13 Jan 2001 14:31:48 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <005e01c07d97$b7fdef60$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Odhiambo Washington" , "FBSD-Q" References: <20010113220443.A528@poeza.iconnect.co.ke> Subject: Re: Starting daemons in rc.local Date: Sat, 13 Jan 2001 14:33:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Shell script gurus assistance required. > Okay I need to start these two daemons the new way-- seems 4.2-STABLE > hates the way they are being started... > Below is the old method I used in 3.x [ snip copy of rc.local script ] You should make startup scripts in /usr/local/etc/rc.d. The /etc/rc script will run any executable script in that directory when the system boots. # /usr/local/etc/rc.d/radius.sh #!/bin/sh if [ -f /sbin/radiusd]; then echo "Radius" /sbin/radiusd -d /etc/raddb -a /var/adm/radacct fi # /usr/local/etc/rc.d/choicenet.sh #!/bin/sh if [ -f /etc/choicenet/filterd ]; then echo "Choicenet" /etc/choicenet/filterd fi -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message