Skip to content

Instantly share code, notes, and snippets.

@forresty
Last active May 17, 2020 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forresty/e94aaea82b115a6e735a61e182eb4cb3 to your computer and use it in GitHub Desktop.
Save forresty/e94aaea82b115a6e735a61e182eb4cb3 to your computer and use it in GitHub Desktop.
openwrt overture init.d script
#!/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