[package] add uams libraries, configuration file and init script (#6965)
[openwrt/svn-archive/archive.git] / net / netatalk / files / afpd.init
1 #!/bin/sh /etc/rc.common
2
3 START=70
4
5 MAXCONS="7"
6 CONFIGFILE="/etc/netatalk/afpd.conf"
7 PIDFILE="/var/run/afpd.pid"
8
9 start()
10 {
11 /usr/bin/cnid_metad
12 /usr/bin/afpd -F ${CONFIGFILE} -P ${PIDFILE} -c ${MAXCONS}
13 }
14
15 stop()
16 {
17 killall afpd
18 killall cnid_metad
19 }
20
21 reload()
22 {
23 kill -s HUP `cat ${PIDFILE}`
24 start
25 }