You are not logged in.

#1 2007-06-06 11:07:42

somedrew
Member
From: Canada
Registered: 2007-05-14
Posts: 140

Skipping a daemon from starting on boot

I'm wondering if it's possible to skip a deamon from starting during bootup? If my notebook is not plugged into a wired network and the wireless killswitch is on, my system hangs on starting the network daemon until it eventually times out and continues booting. IIRC you can do something similar on Debian by issuing a Ctrl+c at the appropriate time. I've done some forum/wiki searches but came up empty.

If it may not be possible to skip a service from starting, may anyone be willing to give me some pointers on how to reduce the timeout for the network daemon (I've looked at /etc/rc.d/network, but wasn't sure if that's where I should to be looking)?

Any help would be very appreciated!

Last edited by arbrown (2007-06-06 11:13:33)

Offline

#2 2007-06-06 11:17:34

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Skipping a daemon from starting on boot

you can put a ! before the network daemon in /etc/rc.conf

e.g.

DAEMONS=(!network)

http://wiki.archlinux.org/index.php/Rc.conf#Daemons

Last edited by SiD (2007-06-06 11:22:11)

Offline

#3 2007-06-06 11:23:20

somedrew
Member
From: Canada
Registered: 2007-05-14
Posts: 140

Re: Skipping a daemon from starting on boot

SiD wrote:

you can put a ! before the network daemon in /etc/rc.conf

Thanks for the response! I was hoping for something a little more on the fly though. I'm connected to a network ~90% of the time so I'd like to keep the network daemon enabled in rc.conf, and skip it only in the rare case that there's no network available. Maybe I'm being a little too picky and should just wait for the default timeout to take effect in those cases?

EDIT: meh, didn't even think about backgrounding the daemon. Seems a bit like a dirty hack, but it appears to be working.

Last edited by arbrown (2007-06-06 11:30:26)

Offline

#4 2007-06-07 02:39:43

paul_au
Member
Registered: 2006-04-13
Posts: 38

Re: Skipping a daemon from starting on boot

backgrounding is probably the best way, its not really a 'hack' it just allows other processess to be started in parallel.  I think there is a way though how you can prompt at bootime for a wireless profile selection so you could have 'on' and 'off'.

Offline

#5 2007-06-09 03:25:04

d2_racing
Member
From: Québec,Canada
Registered: 2007-05-11
Posts: 27

Re: Skipping a daemon from starting on boot

You you were a Gentoo user, there a awesome feature that exist...ifplug.

If you are wired, it start the eth0, and if not it search for the wifi smile

Offline

#6 2007-06-09 14:10:01

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Skipping a daemon from starting on boot

i imagine you could write a bash script to do this...


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#7 2007-06-09 14:29:43

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Skipping a daemon from starting on boot

there is an assigned bug report..

http://bugs.archlinux.org/task/4403?histring=ctrl

Offline

Board footer

Powered by FluxBB