[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: init.d script works well, but won't start at boot



Le 25.01.2013 23:16, Benin Technologies a écrit :
Hi,

Running Debian 6.0.4

Does anybody have an idea why a program wouldn't start at boot, while
it's init.d script works fine ?

I experience the problem with OpenLDAP 2.4.33, when compiled with back-sql :

/etc/init.d/slapd start                WORKS FINE
# update rc.d slapd defaults

At boot, I got "Starting OpenLDAP: slapd failed!"

Maybe init try to start slapd when one of it's dependencies is not started yet? I think you can check that by looking into /etc/rc.X, where X is your current runlevel. IIRC, having a "file" (a symlink in fact) named with K means disabled, and S means enable. The file name represent the priority.

I might be totally wrong, so please wait for confirmation or do some researches about init before playing with that stuff ;)


Reply to: