#!/bin/sh
#
# PROVIDE: afpd
-# REQUIRE: atalkd
+# REQUIRE: cnid_metad
+# KEYWORD: shutdown
#
-# AppleTalk daemons. Make sure not to start atalkd in the background:
+# Apple Filing Protocol daemon.
+# If you use AppleTalk, Make sure not to start atalkd in the background:
# its data structures must have time to stablize before running the
# other processes.
#
command=":SBINDIR:/afpd"
etcdir=":ETCDIR:"
pidfile="/var/run/${name}.pid"
-required_files="$etcdir/papd.conf $etcdir/AppleVolumes.default $etcdir/AppleVolumes.system"
+required_files="$etcdir/afpd.conf $etcdir/AppleVolumes.default $etcdir/AppleVolumes.system"
load_rc_config $name
run_rc_command "$1"