Date: Tue, 30 Jun 1998 16:33:13 -0500 From: "Matthew D. Fuller" <fullermd@futuresouth.com> To: "Jordan K. Hubbard" <jkh@time.cdrom.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Adding a new user interface to FreeBSD administration Message-ID: <19980630163313.49201@futuresouth.com> In-Reply-To: <5256.899162971@time.cdrom.com>; from Jordan K. Hubbard on Mon, Jun 29, 1998 at 04:29:31PM -0700 References: <19980629162434.A20703@reilly.home> <5256.899162971@time.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980630163313.49201>