packages/netatalk: use new service functions
authorNicolas Thill <nico@openwrt.org>
Sun, 13 Nov 2011 22:16:14 +0000 (22:16 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 13 Nov 2011 22:16:14 +0000 (22:16 +0000)
SVN-Revision: 29073

net/netatalk/Makefile
net/netatalk/files/afpd.init

index 93eb74cdeed49949aa4d983eadae2863222b923d..5aa5d08b9529390807216288acb75343b3b96975 100644 (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
index bc42b350b891bb908e54263c2f0813756afac8f1..4e92b1830889a3262ccbb9755d82a0807081de1d 100644 (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
 }