1#!/bin/sh 2# 3# PROVIDE: afpd 4# REQUIRE: cnid_metad 5# KEYWORD: shutdown 6# 7# Apple Filing Protocol daemon. (netatalk :NETATALK_VERSION:) 8# If you use AppleTalk, Make sure not to start atalkd in the background: 9# its data structures must have time to stablize before running the 10# other processes. 11# 12 13. /etc/rc.subr 14 15name="afpd" 16rcvar=$name 17command=":SBINDIR:/afpd" 18etcdir=":ETCDIR:" 19pidfile="/var/run/${name}.pid" 20command_args="-P ${pidfile}" 21required_files="$etcdir/afpd.conf $etcdir/AppleVolumes.default $etcdir/AppleVolumes.system" 22 23load_rc_config $name 24run_rc_command "$1" 25 26