Import NetBSD inetd(8)
Do not start it by default just yet. Change-Id: Id8d2dd33eb67ae74b3ef3060638e20c781e8e37d
This commit is contained in:
@@ -321,6 +321,7 @@ install-etc-files: .PHONY .MAKE check_DESTDIR MAKEDEV
|
||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ group \
|
||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ hostname.file \
|
||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ hosts \
|
||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ inetd.conf \
|
||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ mk.conf \
|
||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ motd \
|
||||
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ nsswitch.conf \
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Override settings in NetBSD's default rc.conf with different default settings
|
||||
# for MINIX here, typically to disable scripts that NetBSD enables by default.
|
||||
#(nothing yet)
|
||||
inetd=NO
|
||||
|
||||
# Where to find servers/drivers binaries
|
||||
PKG_SERVICE_DIR=/usr/pkg/service
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
# $NetBSD: inetd.conf,v 1.58 2007/10/16 02:47:14 tls Exp $
|
||||
#
|
||||
# Internet server configuration database
|
||||
#
|
||||
# @(#)inetd.conf 8.2 (Berkeley) 3/18/94
|
||||
#
|
||||
#http stream tcp nowait:600 _httpd /usr/libexec/httpd httpd /var/www
|
||||
#http stream tcp6 nowait:600 _httpd /usr/libexec/httpd httpd /var/www
|
||||
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -ll
|
||||
#ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
|
||||
#telnet stream tcp nowait root /usr/libexec/telnetd telnetd -a valid
|
||||
#telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd -a valid
|
||||
#shell stream tcp nowait root /usr/libexec/rshd rshd -L
|
||||
#shell stream tcp6 nowait root /usr/libexec/rshd rshd -L
|
||||
#login stream tcp nowait root /usr/libexec/rlogind rlogind -L
|
||||
#login stream tcp6 nowait root /usr/libexec/rlogind rlogind -L
|
||||
#exec stream tcp nowait root /usr/libexec/rexecd rexecd
|
||||
#exec stream tcp6 nowait root /usr/libexec/rexecd rexecd
|
||||
#finger stream tcp nowait nobody /usr/libexec/fingerd fingerd -lsmu
|
||||
#finger stream tcp6 nowait nobody /usr/libexec/fingerd fingerd -lsmu
|
||||
#ident stream tcp nowait nobody /usr/libexec/identd identd -l -o OTHER -e -N
|
||||
#ident stream tcp6 nowait nobody /usr/libexec/identd identd -l -o OTHER -e -N
|
||||
#tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
|
||||
#tftp dgram udp6 wait root /usr/libexec/tftpd tftpd -l -s /tftpboot
|
||||
#comsat dgram udp wait root /usr/libexec/comsat comsat
|
||||
#comsat dgram udp6 wait root /usr/libexec/comsat comsat
|
||||
#ntalk dgram udp wait nobody:tty /usr/libexec/ntalkd ntalkd
|
||||
#bootps dgram udp wait root /usr/sbin/bootpd bootpd
|
||||
#
|
||||
# Games
|
||||
#
|
||||
#hunt dgram udp wait nobody /usr/games/huntd huntd
|
||||
#
|
||||
# Internal services
|
||||
#
|
||||
#tcpmux stream tcp nowait root internal
|
||||
#echo stream tcp nowait nobody internal
|
||||
#echo stream tcp6 nowait nobody internal
|
||||
#discard stream tcp nowait nobody internal
|
||||
#discard stream tcp6 nowait nobody internal
|
||||
#chargen stream tcp nowait nobody internal
|
||||
#chargen stream tcp6 nowait nobody internal
|
||||
#daytime stream tcp nowait nobody internal
|
||||
#daytime stream tcp6 nowait nobody internal
|
||||
#time stream tcp nowait nobody internal
|
||||
#time stream tcp6 nowait nobody internal
|
||||
#echo dgram udp wait nobody internal
|
||||
#echo dgram udp6 wait nobody internal
|
||||
#discard dgram udp wait nobody internal
|
||||
#discard dgram udp6 wait nobody internal
|
||||
#chargen dgram udp wait nobody internal
|
||||
#chargen dgram udp6 wait nobody internal
|
||||
#daytime dgram udp wait nobody internal
|
||||
#daytime dgram udp6 wait nobody internal
|
||||
#time dgram udp wait nobody internal
|
||||
#time dgram udp6 wait nobody internal
|
||||
#qotd stream tcp nowait nobody /usr/games/fortune fortune
|
||||
#qotd stream tcp6 nowait nobody /usr/games/fortune fortune
|
||||
#
|
||||
# Kerberos authenticated services
|
||||
#
|
||||
#klogin stream tcp nowait root /usr/libexec/rlogind rlogind -k
|
||||
#eklogin stream tcp nowait root /usr/libexec/rlogind rlogind -k -x
|
||||
#kshell stream tcp nowait root /usr/libexec/rshd rshd -k
|
||||
#
|
||||
# Services run ONLY on the Kerberos server
|
||||
#
|
||||
#kerberos-adm stream tcp nowait root /usr/libexec/kadmind kadmind
|
||||
#kerberos-adm stream tcp6 nowait root /usr/libexec/kadmind kadmind
|
||||
#kpasswd dgram udp wait root /usr/libexec/kpasswdd kpasswdd
|
||||
#kpasswd dgram udp6 wait root /usr/libexec/kpasswdd kpasswdd
|
||||
#
|
||||
# The hprop service is run on slave KDCs to receive the database from
|
||||
# the master KDC.
|
||||
#hprop stream tcp nowait root /usr/libexec/hpropd hpropd
|
||||
#hprop stream tcp6 nowait root /usr/libexec/hpropd hpropd
|
||||
#
|
||||
# RPC based services
|
||||
#
|
||||
#rstatd/1-3 dgram rpc/udp wait:100 nobody:kmem /usr/libexec/rpc.rstatd rpc.rstatd
|
||||
#rstatd/1-3 dgram rpc/udp6 wait:100 nobody:kmem /usr/libexec/rpc.rstatd rpc.rstatd
|
||||
#rusersd/2-3 dgram rpc/udp wait:100 nobody /usr/libexec/rpc.rusersd rpc.rusersd
|
||||
#rusersd/2-3 dgram rpc/udp6 wait:100 nobody /usr/libexec/rpc.rusersd rpc.rusersd
|
||||
#walld/1 dgram rpc/udp wait nobody:tty /usr/libexec/rpc.rwalld rpc.rwalld
|
||||
#sprayd/1 dgram rpc/udp wait nobody /usr/libexec/rpc.sprayd rpc.sprayd
|
||||
#rquotad/1-2 dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
|
||||
+1
-1
@@ -34,7 +34,7 @@ CONFIGFILES=\
|
||||
fsck ftpd \
|
||||
\
|
||||
\
|
||||
ipfilter ipsec \
|
||||
inetd ipfilter ipsec \
|
||||
\
|
||||
\
|
||||
local \
|
||||
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: inetd,v 1.7 2004/08/13 18:08:03 mycroft Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: inetd
|
||||
# REQUIRE: DAEMON LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="inetd"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
required_files="/etc/${name}.conf"
|
||||
extra_commands="reload"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
Reference in New Issue
Block a user