Date: Thu, 28 Oct 2010 11:53:58 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Tim Dunphy <bluethundr@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: start slapd automatically Message-ID: <44fwvqwbxl.fsf@be-well.ilk.org> In-Reply-To: <AANLkTinarysfg8k4dSoy-HbJer54ZiwWdJyhpAYYKKfP@mail.gmail.com> (Tim Dunphy's message of "Thu, 28 Oct 2010 11:44:03 -0400") References: <AANLkTinarysfg8k4dSoy-HbJer54ZiwWdJyhpAYYKKfP@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Tim Dunphy <bluethundr@gmail.com> writes:
> I have a quick one for ya.. I am running openLDAP 2.4 server on my
> freebsd box and it's coming along nicely.
>
> But whenever I reboot the box it doesn't start automatically. What's
> the best way to accomplish this?
>
> My /etc/defaults/rc.conf has the following entry:
>
> local_startup="/usr/local/etc/rc.d" # startup script dirs.
>
> And slapd is living in the location referenced on that line:
>
>
> [root@LBSD2:/usr/home/bluethundr]#ls -l /usr/local/etc/rc.d/slapd
> -r-xr-xr-x 1 root wheel 3591 Oct 9 21:37 /usr/local/etc/rc.d/slapd
>
>
> So I am under the impression that it should be starting there normally.
You probably missed the rc.conf entry, described in the message that was
printed when you installed the port. Specifically:
In order to run the LDAP server, you need to edit
%%PREFIX%%/etc/openldap/slapd.conf
to suit your needs and add the following lines to /etc/rc.conf:
slapd_enable="YES"
slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/
ldap://0.0.0.0/"'
slapd_sockets="/var/run/openldap/ldapi"
Then start the server with
%%PREFIX%%/etc/rc.d/slapd start
or reboot.
Where %%PREFIX%% is presumably /usr/local.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44fwvqwbxl.fsf>
