summaryrefslogtreecommitdiffstats
path: root/utils/acpid/files/acpid.init
blob: 1424814d1631fd2bb105be4d0b48b4b57f9f0608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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"
}