Changeset 29094


Ignore:
Timestamp:
2011-11-14T03:38:42+01:00 (6 years ago)
Author:
nico
Message:

packages/vpzone: use new service functions

Location:
packages/net/vpzone
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/vpzone/Makefile

    r22343 r29094  
    11# 
    2 # Copyright (C) 2010 OpenWrt.org 
     2# Copyright (C) 2010-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=vpzone 
    1111PKG_VERSION:=0.1.2 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/net/vpzone/files/vpzone.init

    r21646 r29094  
    11#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2010-2011 OpenWrt.org 
    23 
    34START=50 
    4 DAEMON=vpzone 
    5 PID_F=/var/run/$DAEMON.pid 
     5 
     6SERVICE_DAEMONIZE=1 
     7SERVICE_WRITE_PID=1 
    68 
    79start() { 
    8         start-stop-daemon -p $PID_F -x $DAEMON -S -b -m 
     10        service_start /usr/bin/vpzone 
    911} 
    1012 
    1113stop() { 
    12         start-stop-daemon -p $PID_F -x $DAEMON -K 
     14        service_stop /usr/bin/vpzone 
    1315} 
Note: See TracChangeset for help on using the changeset viewer.