General discussion

Locked

No rc.local?

By cwantling ·
Suse Linux 8.0 does not have an rc.local to allow Admin an easy way to start programs on boot-up.

Does anyone have a neat way of providing this feature please?

TIA Colin

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

No rc.local?

by n9oec In reply to No rc.local?

They must be using the /etc/rc.d/rcx.d structure where x is the runlevel and the entries in the directory denote what gets started or stopped in theat runlevel. Read my comments about chkconfig for managing the services in the runlevels <a href="http://www.techrepublic.com/forumdiscuss/thread_detail.jhtml?thread_id=107315&message_id=643075">http://www.techrepublic.com/forumdiscuss/thread_detail.jhtml?thread_id=107315&message_id=643075</a>. What you now require is the core script that starts ans stops the service. Go to the /etc/rc.d/init.d dir and copy one of the existing scripts to a file you name uniquely for what you want done and edit out what doesn't apply and add what is needed to handle your apps. Note the line at the top like "# chkconfig 2345 10 90" This sets the defaults for chkconfig. 2345 is the default on runlevels (all others are off.) 10 is the start priority and 90 is the stop priority. Adjust the values as applicable and run chkconfig to set the levels on (and others off as a consequence) for your apps script name.

Collapse -

No rc.local?

by cwantling In reply to No rc.local?

It is surprising that SuSE haven't provided a simple means of performing what is a very common task. I had been waiting for a very simple answer, but it seems there just isn't one. At least I got help with a way of doing it, thanks.

Collapse -

No rc.local?

by cwantling In reply to No rc.local?

This question was closed by the author

Related Discussions

Related Forums