You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
377 B

  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. }