extras/fwknop.init.openwrt
raw| 1 | #!/bin/sh /etc/rc.common |
| 2 | # |
| 3 | # Fwknop is developed primarily by the people listed in the file 'AUTHORS'. |
| 4 | # Copyright (C) 2009-2014 fwknop developers and contributors. For a full |
| 5 | # list of contributors, see the file 'CREDITS'. |
| 6 | # |
| 7 | |
| 8 | START=60 |
| 9 | |
| 10 | FWKNOPD_BIN=/usr/sbin/fwknopd |
| 11 | |
| 12 | start() |
| 13 | { |
| 14 | $FWKNOPD_BIN |
| 15 | } |
| 16 | |
| 17 | stop() |
| 18 | { |
| 19 | $FWKNOPD_BIN -K |
| 20 | } |
| 21 | |
| 22 | restart() |
| 23 | { |
| 24 | stop; |
| 25 | sleep 1; |
| 26 | start; |
| 27 | } |
| 28 | |
| 29 | reload() |
| 30 | { |
| 31 | $FWKNOPD_BIN -R |
| 32 | } |