24a2089a51
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22400 3c298f89-4303-0410-b956-a3cf2f4a3e73
25 lines
312 B
Bash
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}"`
|
|
}
|