LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need LDAP-Netmeeting to start automatically (https://www.linuxquestions.org/questions/linux-newbie-8/need-ldap-netmeeting-to-start-automatically-16530/)

byersjlpa 03-18-2002 02:05 PM

Need LDAP-Netmeeting to start automatically
 
I'm sort of a linux newbie, although I've used it on and off for a couple of years. I've configured SuSE Linux 7.3 to run OpenLDAP to host a Netmeeting directory. I can get the directory to work when I run the 3 required commands manually. However, I haven't figured out how to get these commands to be executed automatically every time the machine is rebooted.

I followed the directions in the Netmeeting directory How-to, and downloaded the Netmeeting Directory kit from www.freesoft.org. This kit included a file called slapd.rcd which is "For systems with /etc/rc.d/ style initialization scripts (like RedHat), the slapd.rc is provided to automate the starting and stopping of the slapds".

The commands I neet to have executed to start the Netmeeting Directory are:

bash# /usr/local/libexec/slapd -f /usr/local/etc/openldap/slapd.conf -u nobody

bash$ /usr/local/libexec/slapd –h ldap://localhost:2345/ -f /usr/local/var/openldap-netmeeting/slapd2.conf

bash$ /usr/local/libexec/slapd -h ldap://localhost:2345/ -f /usr/local/etc/openldap/slapd2.conf


What is the best way to have these commands run each time the machine starts up? I've read and read, but can't seem to figure it out. In windows I could create a batch file and put it in the startup folder. Is there something similar in Linux or specifically SuSE 7.3?

Thanks in advance....JB

finegan 03-18-2002 02:55 PM

I've been recommending this hack a lot lately. When in doubt, cheat. Every distro comes with a script that is run by init dead last. On most distros its /etc/rc.d/rc.local, but in SuSe its /etc/rc.d/boot.local, because SuSe has to rename everything. Its already a bash script so you can stick those three lines in there as is.

Cheers,

Finegan


All times are GMT -5. The time now is 11:12 PM.