Last active
May 17, 2020 10:59
-
-
Save forresty/e94aaea82b115a6e735a61e182eb4cb3 to your computer and use it in GitHub Desktop.
openwrt overture init.d script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
START=91 | |
USE_PROCD=1 | |
PROG=/root/overture/overture-linux-arm | |
CONFIG=/root/overture/config.json | |
start_service() { | |
procd_open_instance | |
procd_set_param respawn | |
procd_set_param stdout 1 | |
procd_set_param stderr 1 | |
procd_set_param command "$PROG" -c "$CONFIG" | |
procd_close_instance | |
} | |
service_triggers() { | |
procd_add_reload_trigger "overture" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment