2010-03-28 13:21:56 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
|
|
|
|
START=70
|
|
|
|
|
|
|
|
MAXCONS="7"
|
|
|
|
CONFIGFILE="/etc/netatalk/afpd.conf"
|
|
|
|
PIDFILE="/var/run/afpd.pid"
|
|
|
|
|
|
|
|
start()
|
|
|
|
{
|
2010-04-10 18:33:01 +00:00
|
|
|
/usr/sbin/cnid_metad
|
|
|
|
/usr/sbin/afpd -F ${CONFIGFILE} -P ${PIDFILE} -c ${MAXCONS}
|
2010-03-28 13:21:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
2010-07-27 18:28:00 +00:00
|
|
|
kill `cat "${PIDFILE}"`
|
2010-03-28 13:21:56 +00:00
|
|
|
killall cnid_metad
|
|
|
|
}
|
|
|
|
|
|
|
|
reload()
|
|
|
|
{
|
2010-07-27 18:28:00 +00:00
|
|
|
kill -s HUP `cat "${PIDFILE}"`
|
2010-03-28 13:21:56 +00:00
|
|
|
}
|