packages/opennhrp: use new service functions
authorNicolas Thill <nico@openwrt.org>
Wed, 9 Nov 2011 23:43:33 +0000 (23:43 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 9 Nov 2011 23:43:33 +0000 (23:43 +0000)
SVN-Revision: 28914

net/opennhrp/Makefile
net/opennhrp/files/opennhrp.init

index 3881b21e85ef82f10c49c35d1c239d663fc54153..880803ce7f1b3f21f5fa57d961008076658f9e30 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2009-2010 OpenWrt.org
+# Copyright (C) 2009-2011 OpenWrt.org
 # Copyright (C) 2009 Jakob Pfeiffer
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=opennhrp
 PKG_VERSION:=0.12.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/opennhrp
index 706e0181cb5b16b38c6316d701598bd29ab6f410..8831287ea80a025777bedff357d6ce667ea9299f 100755 (executable)
@@ -1,13 +1,15 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2009 OpenWrt.org
-START=50
+# Copyright (C) 2009-2011 OpenWrt.org
 # Copyright (C) 2009 Jakob Pfeiffer
 
+START=50
+
+SERVICE_USE_PID=1
+
 start() {
-       /usr/sbin/opennhrp -d
+       service_start /usr/sbin/opennhrp -d
 }
 
 stop() {
-       killall opennhrp
+       service_stop /usr/sbin/opennhrp
 }
-