From owner-freebsd-questions Sat Dec 11 12:11:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from akira.lanfear.com (akira.lanfear.com [208.12.10.34]) by hub.freebsd.org (Postfix) with ESMTP id 67B561517D for ; Sat, 11 Dec 1999 12:11:04 -0800 (PST) (envelope-from marcw@lanfear.com) Received: from SHURIKEN (shuriken.lanfear.com [208.12.10.35]) by akira.lanfear.com (8.9.3/8.9.3) with SMTP id MAA30276; Sat, 11 Dec 1999 12:10:50 -0800 (PST) (envelope-from marcw@lanfear.com) Reply-To: From: "Marc Wandschneider" To: "'Rob Kaper'" Cc: Subject: RE: rc.sysinit alike file in FreeBSD? Date: Sat, 11 Dec 1999 12:10:49 -0800 Message-ID: <001c01bf4413$d20ba870$230a0cd0@SHURIKEN> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <19991211210027.A20861@capsi.cx> X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.5600 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't believe that FreeBSD has the concept of runlevels, so if you run something in rc.local it's guaranteed to only be run at startup ... doing a search in my /etc directory shows that rc.local is ONLY run from rc, which only appears to be run at start up.. marc. > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Rob Kaper > Sent: Saturday, December 11, 1999 12:00 PM > To: freebsd-questions@FreeBSD.ORG > Subject: rc.sysinit alike file in FreeBSD? > > > Hi, > > I am porting a Linux program to FreeBSD. The program's > functionality relies > on two start-up files: > > rc.local --> starts the daemon in the background > rc.S/sysinit --> creates a timestamp on startup > > It's very important for the way the program functions that > creating the > timestamp during startup only happens ONCE, no matter if runlevels are > switched, etc etc. > > I have found rc.local, is there a FreeBSD equivalent to this rc.S or > rc.sysinit file and what is it? Would it also work on > different *BSD's or > not? > > Rob > -- > Rob Kaper | mail: cap@capsi.com + cap@capsi.cx > | web: http://capsi.com/ + http://capsi.cx/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message