[OpenIndiana-discuss] Openldap SMF broken
Matt Connolly
matt.connolly.au at gmail.com
Thu May 10 11:51:19 UTC 2012
On 10/05/2012, at 9:47 PM, Andreas Stenius <andreas.stenius at astekk.se> wrote:
> Hi,
>
> Read section "A few twists" from
> http://wiki.openindiana.org/oi/Creating+new+services
>
Ha, thanks! That's exactly the page I read but couldn't find again!!
> Cheers,
> Andreas
>
> 2012/5/10 Matt Connolly <matt.connolly.au at gmail.com>:
>> Hi,
>>
>> I'm trying to set up openldap on oi151a4. I've set up the config files
>> and can run it from the command line, but it took a bit of stuffing
>> around to get its SMF service to run. Even with the correct config,
>> the service starts and then fails, presumably because the start method
>> didn't return within the allowed 30 seconds time frame.
>>
>> I changed the startup script by putting a '&' at the end of the `exec
>> $SLAPD` line so that the server ran in the background from the start
>> script, and now it seems to be working.
>>
>> Is that the best way to do it?? I thought I remember reading somewhere
>> that you could configure a SMF service to run a service as a long
>> running program without requiring it to daemonize/fork. Couldn't find
>> it though.
>>
>>
>> -Matt
>>
More information about the OpenIndiana-discuss
mailing list