LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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:

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

Code:
if [ -x /etc/rc.d/rc.acpid -a -r /var/run/acpid.pid ]; then # quit
  /etc/rc.d/rc.acpid stop
fi
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/acpid.pid 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?

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

Rep: Reputation: 91
I use -current and do have the /var/run/acpid.pid 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
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Well, golly gee willikers Mr. Wilson!! Yes I have an acpid.pid 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."
 
  


Reply



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 4 01-22-2020 11:06 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:53 PM.

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