1234567891011121314151617181920212223242526272829 |
- #!/bin/sh
- #
- # $FreeBSD$
- #
- # Should probably in the future allow running as non-root
- # and enable multiple interfaces in some way in the future.
- # PROVIDE: tangd
- # REQUIRE: NETWORKING DAEMON
- . /etc/rc.subr
- name="tangd"
- desc="Network Presence Binding Daemon (tang)"
- rcvar="tangd_enable"
- load_rc_config $name
- : ${tangd_enable:=no}
- : ${tangd_port="8888"}
- : ${tangd_jwkdir="@jwkdir@"}
- : ${tangd_logfile="/var/log/tang"}
- required_dirs="${tangd_jwkdir}"
- command="@libexecdir@/${name}"
- command_args="-p ${tangd_port} -l ${tangd_jwkdir} 2>> ${tangd_logfile} &"
- run_rc_command "$1"
|