xl2tpd.init 377 B

123456789101112131415161718192021222324
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. START=60
  4. USE_PROCD=1
  5. BIN=xl2tpd
  6. RUN_D="/var/run/xl2tpd"
  7. PID_F="/var/run/xl2tpd.pid"
  8. start_service() {
  9. rm -rf "$RUN_D"
  10. mkdir -p "$RUN_D"
  11. procd_open_instance
  12. procd_set_param command $BIN -D -l -p "$PID_F"
  13. procd_set_param respawn
  14. procd_close_instance
  15. }
  16. stop_service() {
  17. rm -rf "$RUN_D"
  18. rm -rf "$PID_F"
  19. }