From owner-freebsd-hackers Thu Jun 14 11:59:17 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.webmonster.de (datasink.webmonster.de [194.162.162.209]) by hub.freebsd.org (Postfix) with SMTP id 204BC37B401 for ; Thu, 14 Jun 2001 11:58:57 -0700 (PDT) (envelope-from karsten@rohrbach.de) Received: (qmail 51615 invoked by uid 1000); 14 Jun 2001 18:59:16 -0000 Date: Thu, 14 Jun 2001 20:59:16 +0200 From: "Karsten W. Rohrbach" To: Peter Pentchev Cc: Danny Braniss , freebsd-hackers@FreeBSD.ORG Subject: Re: rc, was: Re: Plan to import NetBSD rc system Message-ID: <20010614205916.D49807@mail.webmonster.de> Mail-Followup-To: "Karsten W. Rohrbach" , Peter Pentchev , Danny Braniss , freebsd-hackers@FreeBSD.ORG References: <20010614201927.D729@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="6e7ZaeXHKrTJCxdu" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010614201927.D729@ringworld.oblivion.bg>; from roam@orbitel.bg on Thu, Jun 14, 2001 at 08:19:27PM +0300 X-Arbitrary-Number-Of-The-Day: 42 X-URL: http://www.webmonster.de/ X-Disclaimer: My opinions do not necessarily represent those of my employer Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --6e7ZaeXHKrTJCxdu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Peter Pentchev(roam@orbitel.bg)@2001.06.14 20:19:27 +0000: > OK, and what do I do if I want to manually start/stop the service later, > and it needs variables defined in /etc/rc.conf{,local} ? if [ x${_RC_CONF} !=3D x1 ]; then . /etc/rc.conf; fi in the beginning of the local startup script? if it really requires it, it could plainly source it in the beginning, or selectively using the above if statement when /etc/defaults/rc.conf would do _RC_CONF=3D1; export _RC_CONF that's not a very good idea, but it would - at least - fix the behaviour to be the right way. please read on... what i dislike most of the complex local invocation method described in the mail referred, is the amount of subprocesses spawned by backticks. i see that there are not many people on very small or even embedded systems but a lot of subprocesses tend to be a real pain in the ass on slow boxes. imagine a local_startup dir with let's say 10 .sh files. with basename, echo in a backticked subshell and dd invocations you will catch execution overhead of 30(!) processes you do not really need. i think that this is a specific thing about freebsd, being able to run on really pathologic (speak: badly outdated) hardware and start up into multiuser mode in under 30 seconds. try it... start up an out of the box redhat linux on a pentium-60 with 32mb ram. although this box is capable of being a very efficient isdn router/firewall/application proxy, it won't start up very fast (eg. over 2 minutes for a reboot) sorry danny, these are just my EUR0.02 /k --=20 > What do you want to re-install today? KR433/KR11-RIPE -- WebMonster Community Founder -- nGENn GmbH Senior Techie http://www.webmonster.de/ -- ftp://ftp.webmonster.de/ -- http://www.ngenn.n= et/ karsten&rohrbach.de -- alpha&ngenn.net -- alpha&scene.org -- catch@spam.de GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE DF22 3340 4F4E 2964 B= F46 --6e7ZaeXHKrTJCxdu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7KQmEM0BPTilkv0YRAq9FAJ43hR7cZ9SugP5LTKxZg5Jsw+5+4gCcDiy9 tDDA9vwmav+qLXZBWj1pjeQ= =VXed -----END PGP SIGNATURE----- --6e7ZaeXHKrTJCxdu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message