florian 24a2089a51 [package] fix netatalk init script (#7669)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-27 18:28:00 +00:00

25 lines
312 B
Bash

#!/bin/sh /etc/rc.common
START=70
MAXCONS="7"
CONFIGFILE="/etc/netatalk/afpd.conf"
PIDFILE="/var/run/afpd.pid"
start()
{
/usr/sbin/cnid_metad
/usr/sbin/afpd -F ${CONFIGFILE} -P ${PIDFILE} -c ${MAXCONS}
}
stop()
{
kill `cat "${PIDFILE}"`
killall cnid_metad
}
reload()
{
kill -s HUP `cat "${PIDFILE}"`
}