Skip to content

Commit

Permalink
Updates to run the standalone on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
hdholm committed Sep 13, 2022
1 parent 78e5e65 commit 62de720
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions units/tangd.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

# Should probably in the future allow running as non-root
# and enable multiple interfaces in some cleaner way.
# and enable multiple interfaces in some way in the future.

# PROVIDE: tangd
# REQUIRE: NETWORKING DAEMON
Expand All @@ -14,18 +14,16 @@
name="tangd"
desc="Network Presence Binding Daemon (tang)"
rcvar="tangd_enable"
command="@libexecdir@/${name}"

load_rc_config $name
: ${tangd_enable:=no}
: ${tangd_port="8888"}
: ${tangd_jwkdir="@jwkdir@"}
: ${tangd_logfile="/var/log/tang"}

pidfile="/var/run/${name}.pid"
required_files="@libexecdir@/${name}"
required_dirs="${tangd_jwkdir}"

command_args="-p ${tangd_port} -l ${tangd_jwkdir} 2>> ${tangd_logfile}"
command="@libexecdir@/${name}"
command_args="-p ${tangd_port} -l ${tangd_jwkdir} 2>> ${tangd_logfile} &"

run_rc_command "$1"

0 comments on commit 62de720

Please sign in to comment.