tangd.rc.in 580 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. #
  3. # $FreeBSD$
  4. #
  5. # Should probably in the future allow running as non-root
  6. # and enable multiple interfaces in some way in the future.
  7. # PROVIDE: tangd
  8. # REQUIRE: NETWORKING DAEMON
  9. . /etc/rc.subr
  10. name="tangd"
  11. desc="Network Presence Binding Daemon (tang)"
  12. rcvar="tangd_enable"
  13. load_rc_config $name
  14. : ${tangd_enable:=no}
  15. : ${tangd_port="8888"}
  16. : ${tangd_jwkdir="@jwkdir@"}
  17. : ${tangd_logfile="/var/log/tang"}
  18. required_dirs="${tangd_jwkdir}"
  19. command="@libexecdir@/${name}"
  20. command_args="-p ${tangd_port} -l ${tangd_jwkdir} 2>> ${tangd_logfile} &"
  21. run_rc_command "$1"