FedoraThis forum is for the discussion of the Fedora Project.
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 would like for httpd, mysql and samba to start automatically on boot. As a temporary measure, I have added startup lines for each one to the /etc/rc.d/rc.local file which does seem to work, but I know there is a better way to do this. Anyone want to give me an example or two of where and how to do this the right way ? Thanks !
i've long forgotten how to do it "nicely" in a gui.. but the real way is to just create a symlink from /etc/init.d/rc.d/mysql (for example) to /etc/init.d/rc3.d/S70mysql (for example again) which will load mysql in position 70 on runlevel 3. note that the exact location of rc.d and similar directories changes from distro to distro, might just be /etc/rc.d for example.
In support of mjmwired: use chkconfig. Simple and easy. No messing with links in /etc/rc.d
If you need a service that does not come with built in chkconfig support, it is easier to manually add the support (you know, see how its done in the other /etc/init.d/* scripts) than messing around with the links!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.