reload rc.conf during boot process

From: Markie (mark.cullen_at_dsl.pipex.com)
Date: 09/21/04

  • Next message: digish reshamwala: "phpMyAdmin problem"
    To: <freebsd-questions@freebsd.org>
    Date: Tue, 21 Sep 2004 00:26:38 +0100
    
    

    Is it possible to do this somehow?

    I was trying my hand out at C and made a cool little menu for myself. It
    looks for files in /etc/ which are named rc.conf.xxxxx and lists them in
    the menu. Then, when you select one on boot, it copies the selected
    configuration file to rc.conf. I put my program in... the rc.d mount
    script, so that the disk is mounted writeable at the time and my C program
    is able to issue cp (bad way I know) to replace rc.conf. After running my
    program in the rc.d mount script I then did a

    . /etc/rc.conf

    but rc.conf doesn't get reloaded. The file is being copied over, as when I
    reboot it starts using the copied over configuration. I am not sure if .
    /etc/rc.conf is supposed to load a file in? I just saw it in some other
    script and assumed that's what it was doing.

    Thanks in advance

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: digish reshamwala: "phpMyAdmin problem"

    Relevant Pages

    • Re: env var dump - why?
      ... > Working on a script that has one huge problem. ... > # Configuration is done all through one configuration file ... > echo "Starts or stops multiple instances of zope one by one or all ...
      (comp.unix.shell)
    • Re: Protecting passwords in Perl scripts?
      ... > the script or contained in an external configuration file (which must be ... > readable by the effective uid of the script). ... Don't bother with encryption or set-id's, ... to the actual threats you face. ...
      (comp.lang.perl.misc)
    • Re: Fwd: Re: Daemon configuration for Apache
      ... >> Now my problem is one apache startup The ... >> or Sxxhttp has used some configuration file based ... > on some shell script ... Do you Yahoo!? ...
      (perl.beginners)
    • env var dump - why?
      ... Working on a script that has one huge problem. ... # Starts or stops multiple instances of zope one by one or all at ... # Configuration is done all through one configuration file ... echo "Starts or stops multiple instances of zope one by one or all ...
      (comp.unix.shell)
    • Re: Daemon configuration for Apache
      ... get the path for httpd.conf file when the System boots ... >> Now my problem is one apache startup The ... >> or Sxxhttp has used some configuration file based ... > on some shell script ...
      (perl.beginners)