You are not logged in.
Pages: 1
I was under the impression it is a bad idea to background hal in rc.conf. Yet, I have read some remarks here and there by people who have done so with no negative effects experienced.
Also, is it safe to background cron? I'm using dcron (Dillon's Cron Daemon).
Thanks.
fyi: DAEMONS=(syslog-ng @network @dnsmasq !netfs crond hal @sensors)
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
I have backgrounded everything except syslog-ng. Have been running since the last 4-5 yrs. No issues.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I'm no expert on the subject but i think if you are booting into a GUI it's best not to background hal, i have tried it before and ended up with a locked system (no mouse movement or keyboard input)
Also i think it's best if you start hal after syslog-ng
DAEMONS=(syslog-ng hal @network @dnsmasq !netfs @crond @sensors)
I have crond backgrounded and have experienced no problems
Offline
Thanks for your suggestion guzz46. Is there any reason why that order is preferred?
Inxsible, do you boot to a GUI?
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
I think certain services and/or daemons depend on hal to be running before they start otherwise you could end up with problems.
Offline
Thanks for your suggestion guzz46. Is there any reason why that order is preferred?
Inxsible, do you boot to a GUI?
I do not use any DM ...I use startx to directly take me to the desktop. And yes, my WM is musca and I do use a bunch of other GUI apps
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
You can safely background hal if you put this in your ~/.bash_profile:
if test -z $DISPLAY && test -e /var/run/hald.pid; then
startx
logout
else
echo "bash: HAL isn't running, it's not a good idea to startx, kthx"
fi
edit: This one is less ugly
Last edited by gog (2009-10-15 06:06:02)
Offline
You should never background hal and call it as early as possible, even if obviously no problems do occur in one installation or another. This is because hal is responsible for some basic I/O setup. It must have finished its work before others can make full use of the system.
On the other hand it should be safe to background cron as its services are used after system startup.
Thus this setup looks good to me:
DAEMONS=(syslog-ng hal @network @dnsmasq !netfs @crond @sensors)
Last edited by bernarcher (2009-10-15 07:55:39)
To know or not to know ...
... the questions remain forever.
Offline
Thank you everyone for the information and suggestions. For the sake of curiosity I backgrounded hal to see what happens. Nothing bad occurred in terms of services. Part of the bootup was much, much faster. However, my desktop still appeared at the usual time mark with a longer interval after init. With no real benefit, I've decided to keep hal unbackgrounded. (Are there real words for this?) Better to be safe than sorry. My DAEMONS line is now as suggested:
DAEMONS=(syslog-ng hal @network @dnsmasq !netfs @crond @sensors)
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Among all the backgrounded daemons ...they will start in order. So from the above examples , network will start before ...and etc..
so as long as hal is the FIRST backgrounded daemon and there are no daemons before that which need hal, backgrounding it is not a problem. Also, the time needed for you to reach your desktop and are able to do anything with the system, is sufficient for all the backgrounded daemons to start.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Among all the backgrounded daemons ...they will start in order. So from the above examples , network will start before ...and etc..
so as long as hal is the FIRST backgrounded daemon and there are no daemons before that which need hal, backgrounding it is not a problem.
It is not that easy, because it does not depend on when hal was started but when hal's setup actions did proceed far enough so that when some later process needs those services, they are really available,
Thus you may be lucky but there is no guarantee. The behaviour might change even with a simple software update.
To know or not to know ...
... the questions remain forever.
Offline
Also, the time needed for you to reach your desktop and are able to do anything with the system, is sufficient for all the backgrounded daemons to start.
My assumption is when the tty login screen appears, init has finished with it's boot up work. After that, the system switches to tty7 and x starts followed by my desktop. Without backgrounding hal, the desktop appears 28 seconds after bootup and about 3 or 4 seconds after the tty login appears. When I background hal, the tty login appears at the 20 second mark and I'm sitting at a blank screen for about 5 or 6 seconds before my desktop appears, still at the 28 second mark. My guess is x.org waits for hal to start before it does anything. I believe x checks hal for hardware detection. I may have to change its settings to not auto-detect hardware but I'm a lazy guy .
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
ist it safe to background network?
network is by far the longest one to load on my system.
I also have ifplugd and privoxy in my daemon list, so it's probably not a good idea?
Offline
Pages: 1