]> Cypherpunks.ru repositories - gocheese.git/blob - doc/ucspi.texi
Refactor -help, remove -root
[gocheese.git] / doc / ucspi.texi
1 @node UCSPI-TCP
2 @section UCSPI-TCP
3
4 You can use GoCheese as UCSPI-TCP service. For example running it also
5 under @url{http://cr.yp.to/daemontools.html, daemontools}:
6
7 @example
8 # mkdir -p /var/service/.gocheese/log
9 # cd /var/service/.gocheese
10
11 # cat > run <<EOF
12 #!/bin/sh -e
13 cd /home/gocheese
14 umask 077
15 [ -e passwd ] || mkfifo passwd
16 ( cat passwords.txt > passwd ) &
17 umask 022
18 mkdir -p packages
19 exec setuidgid gocheese tcpserver -DRH -l 0 ::0 8080 \
20     gocheese -ucspi -passwd passwd /path/to/packages
21 EOF
22
23 # cat > log/run <<EOF
24 #!/bin/sh -e
25 exec setuidgid gocheese multilog t ./main
26 EOF
27
28 # chmod -R 755 /var/service/.gocheese
29 # mv /var/service/.gocheese /var/service/gocheese
30 @end example