Subject: Re: [netatalk-admins] netatalk not up on reboot
From: Danny Rice (dwrice@indiana.edu)
Date: Tue Jun 02 1998 - 10:33:40 EDT
Vivek writes:
> On Tue, 2 Jun 1998, Danny Rice wrote:
>
> > I am using RedHat Linux 5.0 and have the following line at the bottom
> > of /etc/rc.d/rc.local to start netatalk at reboot:
> >
> > /etc/rc.d/init.d/atalk.init start
> >
> > After reboot the server does not show up on the mac machine. If I
> > type:
> >
> > /etc/rc.d/init.d/atalk.init restart
> >
> > it does. Typing /etc/rc.d/init.d/atalk.init start after reboot will
> > also work. Any suggestions?
>
> Are afpd/atalkd actually starting after the rc file has run its
course?
yes
> Also, are these processes being started in the background?
no
> afpd can't be
> started until atalkd has finished setting up: IIRC you have to run atalkd
> in the foreground and wait for it to detach before starting afpd.
>
> What's actually in your '/etc/rc.d/init.d/atalk.init' ?
it seems to work now on reboot. I added the 'sleep 5' before afpd is
started. atalkd is started interactively and takes a long time, but I
thought maybe afpd was started too soon after atalkd finished. Is it
possible that this 'sleep 5' is making it work now?
Here is what "atalk.init start" does. daemon is a sh function that
starts jobs in the forground.
case "$1" in
start)
echo -n "Starting AppleTalk services: "
daemon atalkd
nbprgstr -p 4 "${ATALK_NAME}:Workstation"
nbprgstr -p 4 "${ATALK_NAME}:netatalk"
daemon papd
sleep 5
daemon afpd ${AFPD_NOCLR} ${AFPD_NOAFS} ${AFPD_NOKRB} ${AFPD_NOGUEST} \
-g ${AFPD_GUEST} -c ${AFPD_MAX_CLIENTS} -n ${ATALK_NAME}
echo
touch /var/lock/subsys/atalk
;;
>
> Does anything get run after rc.local that atalkd/afpd might need?
No, but I load a network driver module and do the ifconfig and routes
in rc.local before atalk.init, and I guess this is necessary before
atalk.init, yes?.
>
> --
> I dunno about the Big Bang. The Big Kludge I can believe in.
-- Danny Rice
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:32:46 EST