LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i've disable hal as it hangs everytime its on. (https://www.linuxquestions.org/questions/linux-newbie-8/ive-disable-hal-as-it-hangs-everytime-its-on-826224/)

turf 08-14-2010 12:13 PM

i've disable hal as it hangs everytime its on.
 
i've disable hal as it hangs everytime its on.

is it alright to disable it?
what does it really do anyway?

Tinkster 08-14-2010 01:45 PM

To answer your second question first:
http://en.wikipedia.org/wiki/HAL_(software)


As for disabling it: depends on your usage patterns, or
how good you are writing udev-scripts. I don't need it
(fluxbox doesn't make use of it), but other people with
larger Desktop Managers may find it helpful.


Cheers,
Tink

turf 08-14-2010 06:21 PM

thanks. not sure if i really need it though.. but how can i disable it permanently that it wont try to start the hal deamon everytime i boot up?

where can i find the hal scripts?

Tinkster 08-15-2010 12:27 AM

Sorry, can't answer that - not certain what distro you're using.

Try inquiring with your package manager; have a look (grep) in
the init-directory of your distro.


Foremost you may want to investigate WHY hal hangs your machine.


Cheers,
Tink

turf 08-15-2010 04:06 AM

i'm not sure why hal deamon hangs too.. :D

i'm using centos 5.5

unSpawn 08-15-2010 06:24 AM

'man 8 hald' gives you a starting point, see "bugs and debugging": /etc/init.d/haldaemon stop; pkill -9 hald; pgrep -lf hald (do check!); /usr/sbin/hald --daemon=no --verbose=yes 2>&1 | tee /tmp/hald.debug (end with ^C). Now you can read /tmp/hald.debug and maybe post the last 30 lines in BB code tags if the process did error out.

turf 08-15-2010 07:10 AM

the only thing i see are these...

Quote:

cat /tmp/hald.debug
16:16:47.391 [I] hald.c:489: hal 0.5.8.1
16:16:47.392 [I] hald.c:490: using child timeout 250s
16:16:47.392 [I] hald.c:555: Will not daemonize
16:16:47.409 [I] hald_dbus.c:4058: local server is listening at unix:abstract=/var/run/hald/dbus-dOqJe49pnq,guid=a708c02f8f01aa661890cd004c67a26f
16:16:47.458 [I] hald_runner.c:220: Runner has pid 3360
Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'
16:16:47.465 [D] util_helper.c:80: drop_privileges: could not set group id
what does it mean?

unSpawn 08-15-2010 07:30 AM

What does 'getent passwd haldaemon' return? If it doesn't then run '/usr/sbin/useradd -c 'HAL daemon' -u 68 -s /sbin/nologin -r -d '/' haldaemon 2> /dev/null;' (basically the %preinstall script from 'rpm -q hal --scripts') and try again.

turf 08-15-2010 07:44 AM

out put after getent passwd haldaemon,

Quote:

[root@localhost /]# getent passwd haldaemon
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
[root@localhost /]#
so it did has a user. should i run the command still?

unSpawn 08-15-2010 05:43 PM

No, shouldn't be necessary. Tell me when your HAL problem started. Right at installing the OS? After updates? After you changed something?

turf 08-15-2010 08:37 PM

Right after installing the OS.

after it require me to boot up, it hanged. what i did was to longpress the computer button and restart again and manually turning of the hal deamon upon booting up. it then successfully boot up and so i have created my user account.

i tried updating hoping it might work after but still not.

unSpawn 08-16-2010 06:55 PM

What does 'rpm -q hal ' return?
And 'rpm -ql hal|grep etc/|xargs ls -alZ'?
And 'rpm -Vv hal|grep -v '^\.\{8\}';'?

Is there anything we should know about your machines HW?
Is there anything special wrt devices attached to your machine?
Have you checked the Centos and Red Hat bug trackers for anything recent related to HAL?

John VV 08-16-2010 08:05 PM

for HAL
centOS 5.5 is close so this mjm services page should apply
http://www.mjmwired.net/resources/mjm-services-fc6.html

a description of your hardware might help
also DO YOU NEED a OS meant for a headless server ? ( RHEL 5 / CentOS 5 )
if this is a new computer and you do NOT EXPLICITLY NEED rhel 5
then i would suggest -- Linux Mint, or Ubuntu


All times are GMT -5. The time now is 07:16 AM.