Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2000 12:00:06 -0400
From:      "John Straiton" <jks@clickcom.com>
To:        "Gabriel" <gmains@southwind.net>, <questions@FreeBSD.ORG>
Subject:   RE: Stupid question....
Message-ID:  <NEBBIGBGCKECLJCEOHJCCEDECDAA.jks@clickcom.com>
In-Reply-To: <Pine.BSI.4.21.0006061052340.12714-100000@jasper.southwind.net>

next in thread | previous in thread | raw e-mail | index | archive | help
cd /usr/local/etc/rc.d

This is where you can put your startup scripts. They will get executed in
numerical, then alphabetical order.

something like my 120.dhcpd.sh script:
#!/bin/sh
/usr/local/sbin/dhcpd fxp0 -q

If you compile apache out of the ports it certainly should install a
80.apache.sh for you (in my experience) that looks like:
#!/bin/sh
[ -x /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl start >
/dev/null && echo -n ' apache'

remember that if you are using ssh only on a FreeBSD version below 4.0 , to
keep it as like 010.sshd.sh . If you have apache hang on startup and it's
file is lower numerically/alphabetically, then your sshd won't start and
you'll have an unreachable box. You probably won't have to worry about this
but it's something to keep in mind.

John Straiton
ClickCom, Inc.
jks@clickcom.com
(704)365-9970x101

> -----Original Message-----
> From: owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Gabriel
> Sent: Tuesday, June 06, 2000 11:54 AM
> To: questions@FreeBSD.ORG
> Subject: Stupid question....
>
>
>
> Ok, I feel like a lame ass, but I need to know how to get httpd and dhcpd
> to load on boot up. I know in Linux there is an rc.local file, but I don't
> see anything like that in FreeBSD. Help!!
>
> Thanks,
> Gabriel
>
> ==================================================================
> =============
> ------------------------------------------------------------------
> -------------
> Gabriel		                               SouthWind
> Internet Access, Inc.
> Department Manager                             120 S. Market
> SouthWind Technical Support                    800-525-7963
> ------------------------------------------------------------------
> -------------
> ==================================================================
> =============
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>



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?NEBBIGBGCKECLJCEOHJCCEDECDAA.jks>