From owner-freebsd-arch Fri Apr 6 0:13:31 2001 Delivered-To: freebsd-arch@freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id 4F6EB37B443 for ; Fri, 6 Apr 2001 00:13:28 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from [127.0.0.1] (helo=softweyr.com ident=8c0bf464196cc755ddb191f34e9191d7) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 14lQQc-0000JH-00; Fri, 06 Apr 2001 01:13:06 -0600 Message-ID: <3AC9F003.85901B0B@softweyr.com> Date: Tue, 03 Apr 2001 09:45:07 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Doug White Cc: David Xu , David O'Brien , Cy Schubert - ITSD Open Systems Group , Jack Rusher , Neil Blakey-Milner , Michael Lucas , "litos2001@libero.it" Subject: Re: Startup scripts a la NetBSD References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug White wrote: > > 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. No, it doesn't. Vendor-supplied scripts ala SysV have little chance of getting any level of interdependency right, this is one of the reasons FreeBSD developers have refused to take the SysV approach. Must discussion has ensued over how to actually solve this problem, instead of leaving it to the system administrator to magically conjure up what the dependencies are then hack in the correct order of Sxxx and Kxxx BS to make it work. If you have a solution, we're ready to see and test it. > 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. Ports do this, of course, by creating scripts in /usr/local/etc/rc.d or /usr/X11R6/etc/rc.d, and get called with both 'start' and 'stop' arguments. If you have a way of REALLY creating a dependency tree, please let us know. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message