Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Replace check for /var/run/acpid.socket
authorMichael Prokop <mika@grml.org>
Sat Oct 27 19:04:47 2007 +0200 (13 months ago)
changeset 178abafae464699
manifestabafae464699
parent 177c631b5c323e8
child 1794370f0a8e7b0
tag0.7.26
Replace check for /var/run/acpid.socket
autoconfig.functions
debian/changelog
--- a/autoconfig.functions Sat Oct 06 19:45:25 2007 +0200
+++ b/autoconfig.functions Sat Oct 27 19:04:47 2007 +0200
@@ -744,7 +744,7 @@ if [ -d /proc/acpi ]; then
else
ewarn "(none)" ; eend 1
fi
- if ! [ -S /var/run/acpid.socket ] ; then
+ if ! ps x | grep -q /usr/sbin/acpid ; then
if ! [ -r /var/run/dbus/pid ] ; then
einfo "Starting acpi daemon."
/etc/init.d/acpid start 1>>$DEBUG 2>&1 ; eend $?
--- a/debian/changelog Sat Oct 06 19:45:25 2007 +0200
+++ b/debian/changelog Sat Oct 27 19:04:47 2007 +0200
@@ -1,3 +1,11 @@ grml-autoconfig (0.7.25) unstable; urgen
+grml-autoconfig (0.7.26) unstable; urgency=low
+
+ * Replace check for /var/run/acpid.socket with grepping
+ for a running acpid process because the socket file isn't
+ present reliable.
+
+ -- Michael Prokop <mika@grml.org> Sat, 27 Oct 2007 19:04:05 +0200
+
grml-autoconfig (0.7.25) unstable; urgency=low
* Move syslog startup to the begin of grml-autoconfig so we make