Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-13-2008, 06:31 PM   #1
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540
Slackware current - acpid questions

I notice in slackware current that some code was added to rc.6 and rc.K to stop the acpi daemon. Sounds great as I have had this in my rc.shutdown script for several years. However, I notice some differences that puzzle me.

First, rc.K uses the following:

# Terminate acpid before syslog:
if ps axc | grep -q bin/acpid ; then
  killall -SIGQUIT acpid
rc.6 uses the following:

if [ -x /etc/rc.d/rc.acpid -a -r /var/run/ ]; then # quit
  /etc/rc.d/rc.acpid stop
I realize the two scripts have slightly different purposes, but why the difference? Why not call /etc/rc.d/rc.acpid stop in rc.K?

Second, I have no /var/run/ file. I have a /var/run/acpid.socket. Therefore the code in rc.6 always will fail to execute on my box. I checked man acpid and found no reference to a PID file.

Third, rc.K uses killall -SIGQUIT acpid while rc.acpid uses killall acpid. Why the difference?

None of this is shattering or a deal breaker. I can modify the scripts if I choose. Yet perhaps somebody can explain the differences?

Old 10-15-2008, 07:21 AM   #2
Senior Member
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
I use -current and do have the /var/run/ file, with the correct process ID.

The difference between kill with SIGTERM (default if you do not specify a signal) and SIGQUIT is like the difference between "Could you please leave?" and "Exit now!"
Old 10-15-2008, 08:03 PM   #3
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540
Well, golly gee willikers Mr. Wilson!! Yes I have an file too --- in current. I mistakenly wrote my post while in 12.1 after running current. The 12.1 version of acpid has no PID file. So "never mind" on that "observation."


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ACPID scripts only work when restart acpid from terminal jasonkhonlaw Linux - Laptop and Netbook 2 07-31-2012 11:37 AM
How can I install a slackware-current kernel to slackware 11? bijit1709 Slackware 11 06-13-2007 03:24 PM
slackware current question on the current kernels davimint Slackware 3 06-03-2007 07:39 AM
DISCUSSION: Upgrade to Slackware -current without a -current CD truthfatal LinuxAnswers Discussion 0 09-19-2006 01:42 PM
Some questions regarding 10.1 and current Riddick Slackware - Installation 8 08-15-2005 02:52 AM

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration