packages/utils/acpid/files/acpid.init
Rob Mosher bf668c35b7 acpid: fix init script
init script would error:

procd: /etc/rc.d/S99acpid: /etc/rc.common: /etc/rc.d/S99acpid: line 18: procd_send_signal: not found
procd: /etc/rc.d/S99acpid: /etc/rc.common: /etc/rc.d/S99acpid: line 19: syntax error: unexpected "}"

Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net>
2020-05-27 06:48:34 -04:00

19 lines
336 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"
}
reload_service() {
procd_send_signal "acpid"
}