LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2002, 03:05 PM   #1
byersjlpa
LQ Newbie
 
Registered: Mar 2002
Posts: 19

Rep: Reputation: 0
Question 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
 
Old 03-18-2002, 03:55 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
start LDAP on CENTOS! mumux Linux - Software 5 08-10-2005 07:00 PM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 01:58 PM
Netmeeting <-> Linux FW <-> Netmeeting gboutwel Linux - Networking 0 11-10-2003 09:22 PM
X won't start automatically urinal cake Linux - Newbie 5 03-08-2002 06:54 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration