From owner-freebsd-hackers Tue Jun 30 14:33:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA08823 for freebsd-hackers-outgoing; Tue, 30 Jun 1998 14:33:33 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from shell.futuresouth.com (fullermd@shell.futuresouth.com [198.78.58.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA08814 for ; Tue, 30 Jun 1998 14:33:21 -0700 (PDT) (envelope-from fullermd@shell.futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.8.8/8.8.8) id QAA15487; Tue, 30 Jun 1998 16:33:13 -0500 (CDT) Message-ID: <19980630163313.49201@futuresouth.com> Date: Tue, 30 Jun 1998 16:33:13 -0500 From: "Matthew D. Fuller" To: "Jordan K. Hubbard" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Adding a new user interface to FreeBSD administration References: <19980629162434.A20703@reilly.home> <5256.899162971@time.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <5256.899162971@time.cdrom.com>; from Jordan K. Hubbard on Mon, Jun 29, 1998 at 04:29:31PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jun 29, 1998 at 04:29:31PM -0700, Jordan K. Hubbard woke me up to tell me: > > linux(enabled) = YES > linux(doc) = { This variable controls whether linux emulation support > will be automatically loaded at startup. You can also do it manually > with the /usr/bin/linux command. } > linux(exec-command) = "linux > /dev/null 2>&1" OK, so what's wrong with a simple /etc/rc.conf script that looks something like: # Uncomment next line to run mountd (NFS server) # STARTUP_COMMANDS += mountd # Command and flags for mountd mountd_command = "/sbin/mountd -r" # Uncomment next line to run mailer daemon (default sendmail) # STARTUP_COMMANDS += mailer # Command and flags for mailer mailer_command = "/usr/sbin/sendmail -bd -q30m" Then rc being something of the like of: for i in STARTUP_COMMANDS; do $i_command done This is just scribbling down after 30 seconds thought, don't trust my syntax. But you get the general movement; that leaves you with one file to edit (maybe add a rc.local to that too, to have a seperate file for local changes). It makes it simple for an install script for, say, ssh, to just echo/cat 3 lines onto the end of /etc/rc.local to start it up, eliminating the /usr/local/etc/rc.d hack/kludge also. Sure, it ain't perfect, but it's almost elegant! ;) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | FreeBSD; the way computers were meant to be | * "The only reason I'm burning my candle at both ends, is * | that I haven't figured out how to light the middle yet."| * fullermd@futuresouth.com :-} MAtthew Fuller * | http://keystone.westminster.edu/~fullermd | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message