Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
You can provide Sys 5 style init scripts. These are located under /etc/init.d or /etc/rc.d.
This kind of scripts take one argument with at least:'start','stop', maybe 'status'
RedHat provides a 'chkconfig', you may find some similar solution for Ubuntu.
Poooh - good question. I am using arch, and there are no /etc/rc.d/rc0.d -- /etc/rc.d/rc5.d, however handling of runlevels is done in some kind of way.
Yes, you can put your programs in /etc/rc.local, and they will be started, i guess when the system starts. Using a runlevel friendly way, however, will make sure, that the processes will be finished in a nice way.
You may search for: find /etc -name "tomcat" or find /etc -name "postmaster" (i guess this is the postgres daemon, right?
You may also have a look for runlevels in wikipedia, for instance.
In that case create a startup-script for both of those in
/etc/init.d (use a small one of the others you find there
as a template regarding start, stop and the like) and then
place symlinks in the respective rcX.d directories.
See /etc/rc2.d/README (for example) and /etc/init.d/README
for more information ....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.