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:
parent
85c3afc080
commit
e58ba6b82b
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=netatalk
|
PKG_NAME:=netatalk
|
||||||
PKG_VERSION:=2.2.1
|
PKG_VERSION:=2.2.1
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/netatalk
|
PKG_SOURCE_URL:=@SF/netatalk
|
||||||
|
@ -1,24 +1,23 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
# Copyright (C) 2010-2011 OpenWrt.org
|
||||||
|
|
||||||
START=70
|
START=70
|
||||||
|
|
||||||
MAXCONS="7"
|
MAXCONS="7"
|
||||||
CONFIGFILE="/etc/netatalk/afpd.conf"
|
|
||||||
PIDFILE="/var/run/afpd.pid"
|
|
||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
/usr/sbin/cnid_metad
|
service_start /usr/sbin/cnid_metad
|
||||||
/usr/sbin/afpd -F ${CONFIGFILE} -P ${PIDFILE} -c ${MAXCONS}
|
service_start /usr/sbin/afpd -c ${MAXCONS}
|
||||||
}
|
}
|
||||||
|
|
||||||
stop()
|
stop()
|
||||||
{
|
{
|
||||||
kill `cat "${PIDFILE}"`
|
service_stop /usr/sbin/afpd
|
||||||
killall cnid_metad
|
service_stop /usr/sbin/cnid_metad
|
||||||
}
|
}
|
||||||
|
|
||||||
reload()
|
reload()
|
||||||
{
|
{
|
||||||
kill -s HUP `cat "${PIDFILE}"`
|
service_relaod /usr/sbin/afpd
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user