--
I am using pl11 with net-2.
When routed is started in /etc/rc.d/rc.inet2 it appears to destry the
kernel routing table entries that were set up in /etc/rc.d/rc.inet1
including the router. If I do not start routed then things go along quite
happily, but I believe routed is used to manage the routing tables when
entries need to be added to deleted, so it should really be running.
The relevant files follow:
#! /bin/sh
#
# rc.inet1 This shell script boots up the base INET system.
#
#
#
HOSTNAME=`hostname`
IPADDR="192.5.29.98"
NETMASK="255.255.255.0"
NETWORK="192.5.29.0"
#BROADCAST="192.5.29.255"
GATEWAY="192.5.29.10"
# Set up the Ethernet connection(s).
/etc/ifconfig eth0 ${IPADDR} netmask ${NETMASK}
#broadcast ${BROADCAST}
# Attach the loopback device.
/etc/ifconfig lo 127.0.0.1
/etc/route add 127.0.0.1
# Set up the primary (static) routes.
#/etc/route add microwalt
/etc/route add ${IPADDR}
/etc/route add ${NETWORK}
/etc/route add default gw 192.5.29.10 metric 1
/bin/hostname -S morph
# All done.
**********************************************************************
Note that I previously had the 'ifconfig lo' before the 'ifconfig eth0' with
no change in behaviour.
**********************************************************************
#! /bin/sh
#
# rc.inet2 This shell script boots up the entire INET system.
# Note, that when this script is used to also fire
# up any important remote NFS disks (like the /usr
# distribution), care must be taken to actually
# have all the needed binaries online _now_ ...
#
#
#
# Constants.
NET="/usr/etc"
IN_SERV="lpd"
LPSPOOL="/var/spool/lp1"
# At this point, we are ready to talk to The World...
#echo "Mounting remote file systems..."
#/etc/mount -a -t nfs # This may be our /usr runtime!!!
# Start the SYSLOG daemon. This has to be the first server.
echo -n "INET: "
if [ -f ${NET}/syslogd ]
then
echo -n "syslogd "
${NET}/syslogd
fi
Start the SUN RPC Portmapper.
if [ -f ${NET}/rpc.portmap ]
then
echo -n "portmap "
${NET}/rpc.portmap
fi
# Start the INET SuperServer
if [ -f ${NET}/inetd ]
then
echo -n "inetd "
${NET}/inetd
else
echo "no INETD found. INET cancelled!"
exit 1
fi
# Start the NAMED/BIND name server.
#if [ -f ${NET}/named ]
#then
# echo -n "named "
# ${NET}/named
#fi
# Start the ROUTEd server.
if [ -f ${NET}/routed ]
then
echo -n "routed "
${NET}/routed
fi
# Start the RWHO server.
#if [ -f ${NET}/rwhod ]
#then
# echo -n "rwhod "
# ${NET}/rwhod -t -s
#fi
# Start the U-MAIL SMTP server.
if [ -f /usr/local/lib/smail/smail ]
then
echo -n "smail "
/usr/bin/smail -d0 -bd </dev/null >/dev/null 2>&1 &
fi
# Start the various INET servers.
for server in ${IN_SERV}
do
if [ -f ${NET}/${server} ]
then
echo -n "${server} "
${NET}/${server}
fi
done
# Start the various SUN RPC servers.
# if [ -f ${NET}/rpc.portmap ]
# then
# if [ -f ${NET}/rpc.ugidd ]
# then
# echo -n "ugidd "
# ${NET}/rpc.ugidd -d
# fi
# if [ -f ${NET}/rpc.mountd ]
# then
# echo -n "mountd "
# ${NET}/rpc.mountd
# fi
# if [ -f ${NET}/rpc.nfsd ]
# then
# echo -n "nfsd "
# ${NET}/rpc.nfsd
# fi
#
# # Fire up the PC-NFS daemon(s).
# if [ -f ${NET}/rpc.pcnfsd ]
# then
# echo -n "pcnfsd "
# ${NET}/rpc.pcnfsd ${LPSPOOL}
# fi
# #if [ -f ${NET}/rpc.bwnfsd ]
# #then
# # echo -n "bwnfsd "
# # ${NET}/rpc.bwnfsd ${LPSPOOL}
# #fi
#
# fi
#
echo
## # Done!
*************************************************************************** I am also having a problem with lpd (along with everyone else it seems). When a print job is queued, lpr complains that there is no daemon running, even Any suggestions? ___________________________________________________________________________
It used to work fine before I upgraded the kernel! So I know that all the
permissions and files are correct. I am printing all files to a remote printer
attached to a Sun.
though lpd is running fine. If I kill lpd and restart it, the job in the queue
will be printed, but when another print job is queued, lpr complains again.
| Tony Gale | __/__/__/ __/__/__/ __/__/__/ __/ __/ |
| | __/ __/ __/ __/ __/ __/ |
---------------------------------------------------------------------------
| All opinions expressed are my own |
-------------------------------------