File: run.tcpd.dist

package info (click to toggle)
leafnode 1.11.2.rel-1.0sarge0
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,284 kB
  • ctags: 572
  • sloc: ansic: 10,540; sh: 4,154; xml: 636; makefile: 266; perl: 84; sed: 4
file content (19 lines) | stat: -rw-r--r-- 746 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
#! /bin/sh
# This shell script can be used to run leafnode from daemontools with
# tcpd (tcp_wrappers or socket_wrappers) access control.
#
# It requires daemontools and tcpserver. See INSTALL.
#
# (C) 2002 by Matthias Andree
#
# To use it, 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

exec 2>&1
set -e
echo "starting leafnode tcpserver with tcpd (tcp_wrappers) access control"
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/bin/argv0" "/usr/sbin/tcpd" "/usr/local/sbin/leafnode"'