12 lines
315 B
Bash
12 lines
315 B
Bash
#!/bin/ksh
|
|
|
|
daemon="/usr/local/bin/websockify"
|
|
daemon_user="websock"
|
|
daemon_flags="-D --syslog=/dev/log --token-plugin=TokenFile --token-source=/etc/websockify.conf 127.0.0.1:6000"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
pexp="$(readlink -f /usr/local/bin/python3) ${daemon}${daemon_flags:+ ${daemon_flags}}"
|
|
rc_reload=NO
|
|
|
|
rc_cmd $1
|