update README for rc example file - twitch-go - twitch.tv web application in Go
HTML git clone git://git.codemadness.org/twitch-go
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e262649da11824a0a269b202169496e3eecac6de
DIR parent 9cea321d4b5e39b6ba61eea2bb27b6c6f44f18f4
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Jun 2016 20:05:28 +0200
update README for rc example file
Diffstat:
M README | 18 +-----------------
1 file changed, 1 insertion(+), 17 deletions(-)
---
DIR diff --git a/README b/README
@@ -20,25 +20,9 @@ Install as OpenBSD daemon:
--------------------------
- Make a user "_twitch", install the twitch binary to /usr/local/sbin.
-- Make a file /etc/rc.d/twitch:
-
- #!/bin/sh
-
- daemon="/usr/local/sbin/twitch-go"
- daemon_flags="-t unix -d /var/www/domains/twitch.codemadness.org/data -l /var/www/domains/twitch.codemadness.org/twitch.sock -m 0777"
- daemon_user="_twitch"
-
- . /etc/rc.d/rc.subr
-
- pexp="/usr/local/sbin/twitch-go .*"
- rc_reload=NO
- rc_bg=YES
- rc_cmd $1
-
+- Make a file /etc/rc.d/twitch, see rc_twitch example file.
- Start the daemon:
# rcctl start twitch
- or
- # /etc/rc.d/twitch start
Forward (reverse-proxy) using nginx: