From e2ffbad000d79512b48dac9d9566fea1e0d6835e Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 14 Nov 2011 02:38:42 +0000 Subject: [PATCH] packages/vpzone: use new service functions SVN-Revision: 29094 --- net/vpzone/Makefile | 4 ++-- net/vpzone/files/vpzone.init | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/net/vpzone/Makefile b/net/vpzone/Makefile index 2b1987689..bcaeeaf9e 100644 --- a/net/vpzone/Makefile +++ b/net/vpzone/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010 OpenWrt.org +# Copyright (C) 2010-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vpzone PKG_VERSION:=0.1.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/vpzone diff --git a/net/vpzone/files/vpzone.init b/net/vpzone/files/vpzone.init index 8007ff729..e78a0b787 100644 --- a/net/vpzone/files/vpzone.init +++ b/net/vpzone/files/vpzone.init @@ -1,13 +1,15 @@ #!/bin/sh /etc/rc.common +# Copyright (C) 2010-2011 OpenWrt.org START=50 -DAEMON=vpzone -PID_F=/var/run/$DAEMON.pid + +SERVICE_DAEMONIZE=1 +SERVICE_WRITE_PID=1 start() { - start-stop-daemon -p $PID_F -x $DAEMON -S -b -m + service_start /usr/bin/vpzone } stop() { - start-stop-daemon -p $PID_F -x $DAEMON -K + service_stop /usr/bin/vpzone } -- 2.30.2