You are not logged in.

#1 2011-01-26 17:40:16

MickST
Member
Registered: 2010-02-26
Posts: 54

[solved] "Who" runs rc.multi (or rc.local)?

Hi, I'm trying to create an Arch based live environment with Archiso. To customize some aspects of it as well as to add users to the system I'm using the rc.local script, which I thought it's called after loading the daemons in rc.multi; thing is, it's not being called at all even though init level 3 is specified in inittab.

When is rc.multi or rc.local called? The daemons are loading as specified in rc.conf but rc.local is never called.

Last edited by MickST (2011-01-26 21:03:07)

Offline

#2 2011-01-26 18:21:54

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: [solved] "Who" runs rc.multi (or rc.local)?

Really depends on what you have in rc.local


Mr Green

Offline

#3 2011-01-26 18:34:21

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: [solved] "Who" runs rc.multi (or rc.local)?

rc.local is indeed called by rc.multi, which is run by init, as set in inittab.

Perhaps your rc.local isn't executable?

Offline

#4 2011-01-26 19:46:41

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [solved] "Who" runs rc.multi (or rc.local)?

MickST wrote:

Hi, I'm trying to create an Arch based live environment with Archiso. To customize some aspects of it as well as to add users to the system I'm using the rc.local script, which I thought it's called after loading the daemons in rc.multi; thing is, it's not being called at all even though init level 3 is specified in inittab.

When is rc.multi or rc.local called? The daemons are loading as specified in rc.conf but rc.local is never called.

~> grep rc.sysinit /etc/inittab
rc::sysinit:/etc/rc.sysinit
~> grep rc.multi /etc/inittab
rm:2345:wait:/etc/rc.multi
~> grep rc.local /etc/rc.multi 
if [ -x /etc/rc.local ]; then
    /etc/rc.local

EDIT: Oops, too much coffee... sorry smile

Last edited by Leonid.I (2011-01-26 19:48:28)


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#5 2011-01-26 21:02:35

MickST
Member
Registered: 2010-02-26
Posts: 54

Re: [solved] "Who" runs rc.multi (or rc.local)?

Thank you all for your answers!

locke was right, I created the rc.local file from scratch and it didn't have the executable bit set; everything is working as expected now.

Offline

Board footer

Powered by FluxBB