On Fri, Mar 19, 2004, David M. Fetter wrote:

> What is the proper way to enable various pieces of software installed
> under OpenPKG?  I know you use the $root/etc/rc command and the
> $root/etc/rc.conf is what configures it, but what exactly would you
> place into the rc.conf file?  Do I simply put "$root/etc/rc apache
> start" on one line and then another service on the next line, etc?  Or
> do you use the `rc --config` command to make the changes?  My confusion
> is that in the rc.conf it states all services are disabled by default,
> but when I execute `rc --config` it shows me that the default is to have
> the services enabled and the effective value is also enabled, however
> they do not startup on boot.  Do I need to disable then re-enable the
> software I want to add which then in turn modifies the rc.conf
> appropriately?  Please advise or point me to documentation that explains
> this, I couldn't seem to find anything that directly speaks to this
> matter.  Thank you.

Whether the services are enabled or disabled by default is controlled by
$openpkg_rc_def - which is true by default (set in rc.openpkg).

When you do _not_ want to enable a service, you can set the service_enable
variable to "no" in rc.conf (e.g. apache_enable=no).
You can also set openpkg_rc_def to "no" in rc.conf so that all
services are disabled by default.

Generally, first the %config sections of the rc files are evaluated.
Then you can override the settings in rc.conf. Then the commands are
executed using the then current settings.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to