Files
wakey/scripts/init/openwrt/wakey
T

24 lines
473 B
Bash

#!/bin/sh /etc/rc.common
# OpenWrt init script
START=99
USE_PROCD=1
NAME=wakey
# BIN=/root/.bin/wakey-agent
BIN=/root/.bin/wakey
start_service() {
procd_open_instance
# procd_set_param command "$BIN" serve
procd_set_param command "$BIN" http --host :: --port 12012
procd_set_param respawn 5 1 0
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
stop_service() {
: # procd manages the process; nothing to do here
}