Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
How can i simply add a command like mysql.server start or apachectl start into one of gentoo scripts? I read about gentoo startup scripts and took a look at them and they're nothing i'm used to it (i'm a slack user). Is there something like rc.local, where i could put this directives in and they'd be executed at last?
Gentoo's startup scripts are in the /etc/ folder, if it's that what you mean and i have also startup scripts for mysql and apache. My problem is, i'd like to add startup directives for e.g. mysql and apache into the linux startup-script, to be started at boot time. On Slackware i simply add e.g.:
Code:
mysql.server start
into the /etc/rc.d/rc.local script. Slackware has this script just for additional system administration directives like the below one. Red hat and fedora use a similar philosophy, but gentoo is really different. I'm not sure if it'll work adding this directives (like the below one) to a custom written script located in /etc/init.d and linked from /etc/runlevels/default (my runlevel name is default). Yes, i could try out various settings, reboot the computer and i'll sooner or later come to the right conclusion, but the problem is, the computer i am working with is thousands of km away from me, so i don't have the opportunity to boot from CD, if i do something wrong...
Maybe, i'm completely wrong and Gentoo has a totaly different procedure of adding directives to be executed at startup?
So, if you wanted to add mysql to your default runlevel, then you would:
Code:
rc-update add mysql default
I think you can handle the rest. All it does really is create a symlink in the correct runlevel directory, but it is a nice tool to use. Then you can type:
Code:
rc-status
to make sure your services are running.
You may want to make sure of the name of the service first, by typing
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.