You are not logged in.

#1 2010-12-18 23:29:03

Bennythen00b
Member
Registered: 2010-07-10
Posts: 13

Make daemons start after boot?

Can I make daemons start after the boot has ended? Netcfg uses about 10 seconds connecting to my wireless network, and the mounting of my windows share (trough fstab, using cifs) takes even longer. Therefore, I'd like to know if there's a way to start netcfg as a daemon and/or also mount my share after I've gotten into Arch and/or X after boot?

Can I use something like .xinitrc for this?

Last edited by Bennythen00b (2010-12-18 23:30:04)

Offline

#2 2010-12-18 23:48:26

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Make daemons start after boot?

Did you try prefixing the name with an @ character in the DAEMONS array to make it start in background?

Offline

#3 2010-12-18 23:49:07

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Make daemons start after boot?

Why not just background them?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2010-12-18 23:54:22

Bennythen00b
Member
Registered: 2010-07-10
Posts: 13

Re: Make daemons start after boot?

I tried that, but my windows share won't mount then for some reason. :-/

E: To be a little more specific, I backgrounded "net-profiles" and "network". I assume this doesn't work because whatever executes fstab tries to mount the share and fails before the network has finished connecting, or are daemons queued in the background too?

Anyway, just having "network" backgrounded works rather well, and I only have to wait for my wifi to connect. Not a huge problem, but I'd prefer having it start in the background in some way.

Last edited by Bennythen00b (2010-12-19 02:44:08)

Offline

#5 2010-12-19 00:01:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Make daemons start after boot?

I think they run in parallel when backgrounded so if one takes longer to initialize than another, I think you'll be in trouble.  Someone correct me if I'm mistaken.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB