On Wed, May 02, 2001 at 08:45:19AM -0700, Eric Richardson wrote:
> > hostname -tcp -noddp -nosetpassword -nouservol -noguest
>
> Is hostname arbitrary?
hostname should be replaced with whatever hostname your machine has,
sorry fo the confusion.
> I noticed in the init script, afpd -n "$servername", where servername is
> the short host name.
delete that, start afpd with no command line args. -n is a
CrappleTalk name.
> I also saw in the afpd.conf file that you could use - for the default
> host name but this didn't work either.
thats why i just specify it, in my example above replace hostname with
your machines real hostname.
> output:
>
> /etc/init.d/netatalk start
> Starting AppleTalk Daemons (this will take a while):bind: Cannot assign
> requested address
> bind: Cannot assign requested address
> afpd papd.
comment out papd, and remove the command line args from afpd.
here is a afpd initscript i wrote, i simply disabled the netatalk
script entirely:
#! /bin/sh
#
# afpd Starts and stops just the afpd instead of all
# the appletalk crap along with it. (netatalk)
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/afpd
NAME=afpd
DESC="Appleshare file server"
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
reload)
$0 force-reload
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
--
Ethan Benson
http://www.alaska.net/~erbenson/
Attachment:
pgpuQ_0tXOEeo.pgp
Description: PGP signature