summaryrefslogtreecommitdiff
path: root/mcon/U/d_inetd.U
blob: 02881ad0d381afb2f4bec59e7e95e73b55900eff (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS: 
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: d_inetd.U,v $
?RCS: Revision 3.0  1993/08/18  12:06:23  ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?MAKE:d_inetd: cat test package Myread Setvar
?MAKE:	-pick add $@ %<
?S:d_inetd:
?S:	This symbol conditionally defines USE_INETD which indicates to the C
?S:	program that the initial socket connection will be done via inetd.
?S:.
?C:USE_INETD (INETD):
?C:	This symbol if defined indicates to the C program that inetd will be
?C:	in charge of the initial socket connection. The file descriptors 0 and
?C:	1 have been dup()ed from the original connected socket descriptor and
?C:	are ready for send() and recv().
?C:.
?H:#$d_inetd USE_INETD		/**/
?H:.
?LINT:set d_inetd
: ask whether initial socket connection is to be done via inetd
echo " "
dflt=n
case "$d_inetd" in
'') if $test -f /etc/inetd.conf; then
		$cat <<EOM
Your system provides a so called "Internet super-server", the inetd daemon.
Network services like ftp or rlogin are usually handled via ftpd and rlogind
daemons. Without inetd, these daemons must always be running for the service
to be on. On the contrary, inetd listens to specific ports defined in file
/etc/inetd.conf and will run the appropriate daemon upon request. This scheme
avoids eating up the process table and memory with useless daemons.

I can set up things so that internet connections for $package will be done
using inetd, in which case you will have to edit /etc/inetd.conf to add some
specific informations.

EOM
		dflt=y
	else
		$cat <<EOM
I do not see any trace of a configuration file for inetd, hence I assume your
system does not support the so called "Internet super-server". This means
$package will need to have a daemon process running on this machine to allow
network connections.

EOM
	fi;;
*) case "$d_inetd" in
	"$define") dflt=y;;
	esac;;
esac
rp='Do you wish to use inetd for network connections?'
. ./myread
val="$undef"
case "$ans" in
y*|Y*) val="$define";;
esac
set d_inetd
eval $setvar