Subject: Re: What about startup scripts??
To: Al B. Snell <alaric@alaric-snell.com>
From: Dominik Rothert <dr@astorit.com>
List: tech-pkg
Date: 12/31/2000 13:09:06
"Al B. Snell" <alaric@alaric-snell.com> wrote:

> > I think that we should have the configuration file for package RC-scripts
> > in ${PREFIX}/etc, not /etc. 
> I'm torn in my little head between two needs for the workstation cluster
> folks with NFS-shared /usr/pkg:
> They may want to configure some packages on a per-host basis, which would
> need to be in /etc
> They may want to configure some packages on a global basis, which would
> need to be in /usr/pkg/etc
> Which of these is more common? 

${PREFIX}/etc/rc.conf might contain something like

if [ $(hostname) = "foo" ]; then 
	APACHE=YES
else
	APACHE=NO
fi

or whatever. That solves your problem.

-Dominik

-- 
/*  Dominik Rothert         |           dr@astorit.com  *
 *  A S T O R I T           |  http://www.astorit.com/  *
 *  Hohenzollernring 52     |       fon +49-221-251440  *
 *  50672 Cologne, Germany  |       fax +49-221-251443  */:wq!