commit
13cc866ac0
2 changed files with 10 additions and 16 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=acpid
|
PKG_NAME:=acpid
|
||||||
PKG_VERSION:=2.0.32
|
PKG_VERSION:=2.0.32
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@SF/acpid2
|
PKG_SOURCE_URL:=@SF/acpid2
|
||||||
|
|
|
@ -4,22 +4,16 @@
|
||||||
START=99
|
START=99
|
||||||
STOP=80
|
STOP=80
|
||||||
|
|
||||||
ACPID_BIN="/usr/sbin/acpid"
|
USE_PROCD=1
|
||||||
ACPID_PID="/var/run/acpid.pid"
|
|
||||||
|
|
||||||
start() {
|
start_service() {
|
||||||
[ -x "$ACPID_BIN" ] || return 1
|
procd_open_instance
|
||||||
start-stop-daemon -S -x $ACPID_BIN -p $ACPID_PID
|
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"
|
||||||
}
|
}
|
||||||
|
|
||||||
boot() {
|
reload_service()\ {
|
||||||
# Do nothing on boot
|
procd_send_signal "acpid"
|
||||||
[ -x "$ACPID_BIN" ] || return 1
|
|
||||||
start-stop-daemon -S -x $ACPID_BIN -p $ACPID_PID
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
service_kill ${ACPID_BIN##*/} $ACPID_PID
|
|
||||||
rm -f $ACPID_PID
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue