From: Oliver Sedlbauer Date: Thu, 19 Feb 2026 10:36:51 +0000 (+0100) Subject: acpid: prevent duplicate daemon instances X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8744a706f1d53ee48870c87178a74e020c1a0d0d;p=openwrt-packages.git acpid: prevent duplicate daemon instances 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 --- diff --git a/utils/acpid/Makefile b/utils/acpid/Makefile index ff894a302..dac3015ee 100644 --- a/utils/acpid/Makefile +++ b/utils/acpid/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk 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 diff --git a/utils/acpid/files/acpid.hotplug b/utils/acpid/files/acpid.hotplug index 6e08d01a2..60d62ecae 100644 --- a/utils/acpid/files/acpid.hotplug +++ b/utils/acpid/files/acpid.hotplug @@ -1,7 +1,5 @@ #!/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 diff --git a/utils/acpid/files/acpid.init b/utils/acpid/files/acpid.init index 411eea255..1424814d1 100644 --- a/utils/acpid/files/acpid.init +++ b/utils/acpid/files/acpid.init @@ -12,6 +12,7 @@ start_service() { procd_append_param command -f procd_append_param command -S procd_set_param pidfile "/var/run/acpid.pid" + procd_close_instance } reload_service() {