Tiny Core Extensions > TCE Bugs
acpid is buggy
jur:
There are several issues:
1. '/usr/local/etc/init.d/acpid start' does not work when called from bootlocal.sh. Instead, I get startup messages that 1 rule is loaded, and that event logging is off. Why I don't know. If I stop and start acpid manually afterwards, it works just fine. Also, calling acpid from .xsession also works. But not from bootlocal.sh.
2. doing 'acpid restart' terminates but does not restart acpid. Doing 'acpid status' after restart reports 'acpid is not running'.
Juanito:
OK, let me have a look in a couple of days
jur:
Item 2 is a code execution issue - the stop function calls killall which terminates the function, so nothing else is executed afterwards:
--- Code: ---tc@box:~$ sudo /usr/local/etc/init.d/acpid stop
Terminated
tc@box:~$ sudo /usr/local/etc/init.d/acpid restart
Terminated
--- End code ---
Juanito:
Thanks - scripting was never my strong point...
Juanito:
I've tried the following to stop the daemon:
--- Code: ---stop() {
killall acpid 2>/dev/null
}
--- End code ---
..which works with the bluetooth and cups daemons, but for some reason with acpid, it will stop the daemon, but restart will not work.
I've searched various distros implementations of ../init.d/acpid, but didn't find any usuable alternatives for tc.
Ideas welcome
(note that acpi-2.0.0 shows the same behaviour)
Navigation
[0] Message Index
[#] Next page
Go to full version