From owner-freebsd-arch Mon Apr 2 15:26:45 2001 Delivered-To: freebsd-arch@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 99E3337B71F for ; Mon, 2 Apr 2001 15:26:41 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.10.1/8.10.1) with ESMTP id f32MQAM38922; Mon, 2 Apr 2001 15:26:10 -0700 (PDT) Date: Mon, 2 Apr 2001 15:26:10 -0700 (PDT) From: Doug White To: David Xu Cc: "David O'Brien" , Cy Schubert - ITSD Open Systems Group , Jack Rusher , Neil Blakey-Milner , Michael Lucas , "litos2001@libero.it" Subject: Re[2]: Startup scripts a la NetBSD In-Reply-To: <1221561234.20010402091618@21cn.com> Message-ID: X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 2 Apr 2001, David Xu wrote: > In the past, I saw lots of people refused to see rc.d style in > FreeBSD, include some guys in core team, at that time, I'm very > disappointed, why is it back again? is this just because of NetBSD? Because sysv-style init scripts actually make sense for both admins and installed packages? It's not traditionally BSD, but unfortunately programs are much more complex today, generally with multiple daemons and interdependencies for starting up properly. A vendor-supplied script makes sure everything is set up to start the daemons/packages correctly, and gives a nice start/stop knob for the admin to control it with. For the record, I hacked up this pile of scripts to emulate one runlevel, along with a linux-style chkconfig(8) script. You just have to call the start-rc3.sh script at some point in the boot, and stop-rc3.sh when shutting down. Since we have rc.shutdown.d you don't have to edit rc.shutdown anymore. If you really want Linnex-style /etc/rc.d/init.d/ and friends, this will give it to you. It should be in ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/dwhite/sysvrc-1.1.tar.gz, or any other MASTER_SITE_LOCAL mirror. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message