Mailinglist Archive: opensuse (3644 mails)

< Previous Next >
Re: [SLE] Rc.local
  • From: Anders Johansson <andjoh@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 25 Mar 2002 23:34:34 +0100
  • Message-id: <200203252334.34280.andjoh@xxxxxxxxxxxxxxxxxxxxx>
On Monday 25 March 2002 23.12, Eric Carbone wrote:
I _think_ it is /etc/rc.d/boot.local

nope. boot.local gets sourced *before* the runlevel scripts. rc.local, in
other dists, gets sourced *after*. There is no direct equivalent.

Create a runlevel script and link it as S99zzz and it should be run after
everything else has been run.

You could put a link in /etc/init.d/rc and source rc.local from there, but
since rc is run from telinit you'd have to make sure it's run the way you
want it to. It could be run when going from runlevel 3 to 5 for instance. You
could for instalce introduce a test

if $PREVLEVEL = "N" (guessing. Haven't actually tested this, but the program
'runlevel' reports the previous runlevel as N if it's straight from a boot,
so I'm guessing init calls rc with N as well. Nothing beats testing, though
:)

//Anders

< Previous Next >
References