Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a SUSE Linux box setup running postfix to be a mail server.
There are scripts listed in /etc/init.d and symbolic links listed in /etc/init.d/rc3.d that issue a start for postfix as well as a pop3 and imap program. There are also similar entries in /etc/rc.d and /etc/rc.d/rc3.d.
These scripts were all installed when RPMs for these pieces of software were installed, I did not do them by hand. I had assumed that these would cause postfix and the other programs to start on bootup, but I always have to manually start them.
After doing some searching on Google, it appears that rc3.d should be run when the system execute runlevel 3.
I reviewed by most recent boot log and I see where it indicates that the system has entered runlevel 2, but I don't see where the system ever enters runlevel 3.
Can anyone give me some direction as to how to get these programs to start at boot up? Do I just put a reference to them in the rc2.d directory since the computer is booting into runlevel 2 instead of 3? Is booting into runlevel 2 an indication of a problem?
First check "who -r" and check what runlevel you're really in. You might even be in 5 if this is also a desktop and you're booting into a GUI environment.
Second, you can use chkconfig to control which runlevels services start in. The man page is pretty good but in general "chkconfig <service> on" should start it in all of the normal runlevels.
Finally, the service may be trying to start but failing. Have you checked the logs for this possibility?
If you want to create your own script, there is a skeleton file in /etc/init.d/ to base your script on. There is also a README file with instructions.
Also, you might consider cheating a bit. Read through some of the scripts that exist. Make a copy of one that has the arguments you want and edit changes to the script and the header comments.
The commented header information are very important. Chkconfig can be thought of as a front ent to insserv. They use the header information to create the links and make sure that the order is correct. If your service is dependent on another service that information needs to be in the header.
I verified that the system is running under runlevel 2 and there are no errors being logged.
If have issued the chkconfig command against the services I want to load. I will try resetting the server this coming weekend and see how everything comes up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.