File: run.tcpserver.dist

package info (click to toggle)
leafnode 1.11.7.rc1-10~lenny0
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,436 kB
  • ctags: 577
  • sloc: ansic: 10,637; sh: 4,107; xml: 650; makefile: 281; perl: 84; sed: 4
file content (26 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/sh
# This shell script can be used to run leafnode with tcpserver-native
# access control (tcprules) from daemontools.
#
# It requires daemontools, tcpserver and tcprules (ucspi-tcp). See
# INSTALL.
#
# (C) 2002 by Matthias Andree
#
# For automatic setup, use setup-daemontools.sh.
#
# To set it up manually, create a directory env below the directory
# where you place this file, rename this file to "run" and create two
# files in env:
#
# echo "7"   > env/MAXCONNECTIONS
# echo "127.0.0.1"  > env/LISTENIP
#
# See README-daemontools for more information.

exec 2>&1
set -e
echo "starting leafnode tcpserver with tcpserver-native access control"
make -q nntp.cdb || make nntp.cdb
exec /command/envdir env /bin/sh -c \
    '/usr/local/bin/tcpserver -c$MAXCONNECTIONS -l0 -H -v -x nntp.cdb $LISTENIP 119 /command/setuidgid news "/usr/local/sbin/leafnode"'