packages/netatalk: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@29073 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-13 22:16:14 +00:00
parent 85c3afc080
commit e58ba6b82b
2 changed files with 7 additions and 8 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=netatalk
PKG_VERSION:=2.2.1
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/netatalk

View File

@ -1,24 +1,23 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2011 OpenWrt.org
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}
service_start /usr/sbin/cnid_metad
service_start /usr/sbin/afpd -c ${MAXCONS}
}
stop()
{
kill `cat "${PIDFILE}"`
killall cnid_metad
service_stop /usr/sbin/afpd
service_stop /usr/sbin/cnid_metad
}
reload()
{
kill -s HUP `cat "${PIDFILE}"`
service_relaod /usr/sbin/afpd
}