mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 15:02:01 +08:00
8744a706f1
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 <os@dev.tdt.de>
21 lines
358 B
Bash
21 lines
358 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
|
|
|
START=99
|
|
STOP=80
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command "/usr/sbin/acpid"
|
|
procd_append_param command -f
|
|
procd_append_param command -S
|
|
procd_set_param pidfile "/var/run/acpid.pid"
|
|
procd_close_instance
|
|
}
|
|
|
|
reload_service() {
|
|
procd_send_signal "acpid"
|
|
}
|