"Fossies" - the Fresh Open Source Software Archive

Member "n2n-3.0/packages/openwrt/etc/init.d/edge" (27 Oct 2021, 367 Bytes) of package /linux/misc/n2n-3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "edge": 2.8_vs_3.0.

    1 #!/bin/sh /etc/rc.common
    2 START=90
    3 STOP=10
    4 
    5 USE_PROCD=1
    6 PROG=/usr/bin/edge
    7 CONFIGFILE=/etc/n2n/edge.conf
    8 
    9 start_service() {
   10     procd_open_instance
   11     procd_set_param command $PROG $CONFIGFILE
   12     procd_set_param file $CONFIGFILE
   13     procd_set_param respawn
   14     procd_close_instance
   15 }
   16 
   17 stop_service()
   18 {
   19     service_stop $PROG
   20 }
   21 
   22 service_triggers()
   23 {
   24     procd_add_reload_trigger "edge"
   25 }