LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Equivalent of rc.local in SUSE 10. (https://www.linuxquestions.org/questions/suse-opensuse-60/equivalent-of-rc-local-in-suse-10-a-524575/)

ryzor 02-01-2007 01:08 AM

Equivalent of rc.local in SUSE 10.
 
HI Guys,

what is the equivalent of rc.local file in fedora [which is used to write start up commands that are executed automatically when the machine is booted up] - i wanna do this in SLES 10.

or any way of writing start-up commands / processes in SLES 10 will be welcomed...

regards,
ryzor.

colucix 02-01-2007 04:00 AM

I have not my SUSE box at hand, now. But I remember /etc/init.d/boot.local. Maybe! :rolleyes:

reddazz 02-01-2007 08:23 AM

Yes, the right file is /etc/init.d/boot.local.

AlucardZero 02-10-2012 08:35 AM

Sorry to bump this old thread, but it's near the top of the Google results for "sles rc.local" and I think the answers are mistaken.

/etc/init.d/boot.local includes the text:
Code:

# Here you should add things, that should happen directly after booting
# before we're going to the first run level.

Therefore - it is NOT the equivalent to rc.local, which runs LAST, after the destination runlevel has been reached and all the other startups scripts have run.

It looks like on SLES you're supposed to create your own rc.local if you want it.

lithos 03-06-2012 04:49 PM

Hi,

maybe again late revive the older thread, but finally found there is a rc.local equvivalent.
Quote:

What is the equivalent on an openSUSE system?

This is what I needed to know tonight. Unfortunately the answers I found told me to create a full-fledged init script. That seemed a lot of work simply to run one or two commands. Searching the openSUSE Wiki also resulted in no answers. Thank fully, after reading a few scripts ( /etc/inittab followed by /etc/rc.d/rc) I found the answer:

Code:

    /etc/init.d/after.local
They provide a counterpart for commands that need to run before entering the runlevel:

Code:

    /etc/init.d/before.local



All times are GMT -5. The time now is 02:02 AM.