Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 May 1997 09:54:48 +0300
From:      Nadav Eiron <nadav@barcode.co.il>
To:        Daniel Zborovski <daniel@moonlighting.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: running a program on startup
Message-ID:  <336D8438.BE5@barcode.co.il>
References:  <336D7CE2.70F8@moonlighting.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Zborovski wrote:
> 
> Is there a way to run a program on startup.  As it is now everytime I
> want to start my apache server I need to type:
> 
> /usr/local/apache_1.1.1/src/httpd -f
> /usr/local/apache_1.1.1/conf/http.conf
> 
>         There has to be an easier way!!!
> 
> Thanks Alot
> --
> 
> ------------------------------------------------------------
> |Daniel Zborovski            | daniel@moonlighting.net     |
> |Network Administartor       |                             |
> |Moonlighting Web Management | http://www.moonlighting.net |
> ------------------------------------------------------------

Put it in /etc/rc.local.

In later versions of FreeBSD (2.2 and above I believe) there's an
alternative (using /usr/local/etc/rc.*), but for simple things such as
this rc.local is the best.

Nadav



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