Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2000 17:23:35 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Moses Backman III <penguinjedi@home.com>
Cc:        Drew Tomlinson <drewt@writeme.com>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to Get Program to Start Automatically Upon Boot
Message-ID:  <20001223172334.A48060@hades.hell.gr>
In-Reply-To: <20001217202040.C674@cg22413-a.adubn1.nj.home.com>; from penguinjedi@home.com on Sun, Dec 17, 2000 at 08:20:40PM %2B0000
References:  <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF774@ldcmsx01.lc.ca.gov> <20001217202040.C674@cg22413-a.adubn1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 17, 2000 at 08:20:40PM +0000, Moses Backman III wrote:
> 
> On 2000.12.18 01:17:02 +0000 Drew Tomlinson wrote:
> > I have added a program to my system and would like it to start
> > automatically upon boot.  I'm sure it's as simple as adding the program
> > name to some startup script but I don't know where that would be.  So
> > what file do I need to modify?
> > 
> > Thanks for your help!
>
> add to /etc/rc before the exit 0 line

You shouldn't modify /etc/rc in any way, other than updating it from the
sources at /usr/src/etc when you installworld.  The proper way of starting
things is:

a) To add the shell code that fires up the program at /etc/rc.local

   This will be run by /etc/rc automatically when everything else has finished.

b) To add a SysV-style script in the /usr/local/etc/rc.d directory called
   `program.sh' and let the system scripts start it with `start' as the first
   command line option at boot time.

- giorgos


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001223172334.A48060>