The hotplug script directly invokes /usr/sbin/acpid. If hotplug fires
before procd starts acpid, it cannot stop the procd-managed instance,
resulting in a second unmanaged acpid process running alongside it.
Fix this issue by letting ONLY procd manage the acpi daemon.
Signed-off-by: Oliver Sedlbauer <redacted>
PKG_NAME:=acpid
PKG_VERSION:=2.0.34
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SF/acpid2
#!/bin/sh
-. /lib/functions.sh
-
if [ "$ACTION" = add ] && [ "$DEVICENAME" = event0 ]; then
- ( /etc/init.d/acpid/stop; sleep 3; /usr/sbin/acpid )&
+ /etc/init.d/acpid start
fi
procd_append_param command -f
procd_append_param command -S
procd_set_param pidfile "/var/run/acpid.pid"
+ procd_close_instance
}
reload_service() {