|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U h
Length: 2018 (0x7e2)
Types: TextFile
Notes: UNIX file
Names: »hbtcp«
└─⟦f660c3862⟧ Bits:30004068/disk1.imd Interactive TCP/IP v.1.2
└─⟦f660c3862⟧ UNIX Filesystem
└─⟦this⟧ »hb/new/etc/init.d/hbtcp«
# Startup script for Host-Based TCP/IP
#
#ident "@(#)hbtcp 1.5 - 89/04/21"
USAGE="Usage: /etc/init.d/hbtcp {start | stop}"
if [ ! -d /usr/ucb ]
then # /usr not mounted
exit
fi
if [ -f /etc/TIMEZONE ]
then
. /etc/TIMEZONE
fi
if [ ! -r /etc/netd.cf ]
then
exit # module not installed
fi
case "$1" in
'start')
if [ ! -r /etc/hosts ]
then
echo $0: /etc/hosts not initialized >/dev/console
exit 1
fi
if [ -w /dev/netsched ]
then
cp /dev/null /dev/netsched
case $? in
0) ;;
*)
echo "tcp timer failed" >/dev/console
exit ;;
esac
else
echo $0: /dev/netsched not writable >/dev/console
exit 1
fi
if [ -x /etc/netd ]
then
/etc/netd
case $? in
0) ;;
*)
echo "/etc/netd failed" >/dev/console
exit ;;
esac
else
echo $0: /etc/netd not found >/dev/console
exit 1
fi
sleep 2
if [ -x /etc/syslogd ]
then
/etc/syslogd &
else
echo $0: /etc/syslogd not found >/dev/console
fi
if [ -x /etc/inetd ]
then
/etc/inetd &
else
echo $0: /etc/inetd not found >/dev/console
fi
if [ -x /etc/rwhod ]
then
/etc/rwhod &
else
echo $0: /etc/rwhod not found >/dev/console
fi
;;
'stop')
# kill the rwho daemon
pid=`/bin/ps -ef 2>/dev/null | /bin/grep rwhod | /bin/grep -v grep \
| /bin/sed -e 's/ *[a-z0-9]* *//' -e 's/ .*//'`
if [ "${pid}" != "" ]
then
/bin/kill -9 ${pid}
fi
# kill the inetd daemon
pid=`/bin/ps -ef 2>/dev/null | /bin/grep inetd | /bin/grep -v grep \
| /bin/sed -e 's/ *[a-z0-9]* *//' -e 's/ .*//'`
if [ "${pid}" != "" ]
then
/bin/kill ${pid}
fi
# kill the syslogd daemon
pid=`/bin/ps -ef 2>/dev/null | /bin/grep syslogd | /bin/grep -v grep \
| /bin/sed -e 's/ *[a-z0-9]* *//' -e 's/ .*//'`
if [ "${pid}" != "" ]
then
/bin/kill ${pid}
fi
# kill the netd daemon
pid=`/bin/ps -ef 2>/dev/null | /bin/grep netd | /bin/grep -v grep \
| /bin/sed -e 's/ *[a-z0-9]* *//' -e 's/ .*//'`
if [ "${pid}" != "" ]
then
/bin/kill ${pid}
fi
;;
*)
echo ${USAGE}
exit 1
;;
esac