#!/bin/sh
#
# PROVIDE: afpd
# REQUIRE: cnid_metad
# KEYWORD: shutdown
#
# Apple Filing Protocol daemon. (netatalk 2.3.1)
# 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.
#

. /etc/rc.subr

name="afpd"
rcvar=$name
command="/usr/pkg/libexec/netatalk/afpd"
etcdir="/usr/pkg/etc/netatalk"
pidfile="/var/run/${name}.pid"
command_args="-P ${pidfile}"
required_files="$etcdir/afpd.conf $etcdir/AppleVolumes.default $etcdir/AppleVolumes.system"

load_rc_config $name
run_rc_command "$1"

