Date: Mon, 5 May 1997 13:27:09 -0700 (PDT) From: Dan Busarow <dan@dpcsys.com> To: Daniel Zborovski <daniel@moonlighting.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: running a program on startup Message-ID: <Pine.UW2.3.95.970505132332.5249G-100000@cedb> In-Reply-To: <336D7CE2.70F8@moonlighting.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 May 1997, 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 For 2.1.5R and up, create the directory /usr/local/etc/rc.d When the system boots it looks for files with a .sh extension in this directory and executes them. So you want to create a file named /usr/local/etc/rc.d/apache.sh containing #!/bin/sh /usr/local/apache_1.1.1/src/httpd -f /usr/local/apache_1.1.1/conf/http.conf Chmod +x it and you are all set. Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970505132332.5249G-100000>