websockify: Initial version of role
This commit is contained in:
parent
531cd3a620
commit
701c42b32c
4 changed files with 64 additions and 0 deletions
12
roles/websockify/files/rc.websockify
Normal file
12
roles/websockify/files/rc.websockify
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue