Changeset 29060


Ignore:
Timestamp:
2011-11-13T23:15:47+01:00 (6 years ago)
Author:
nico
Message:

packages/frickin: use new service functions

Location:
packages/net/frickin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/frickin/Makefile

    r19719 r29060  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=frickin 
    1111PKG_VERSION:=1.3 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/frickin/files/frickin.init

    r15247 r29060  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 BIN=frickin 
    6 DEFAULT=/etc/default/$BIN 
    7 [ -f $DEFAULT ] && . $DEFAULT 
     6SERVICE_DAEMONIZE=1 
     7SERVICE_WRITE_PID=1 
     8 
     9DEFAULT=/etc/default/frickin 
    810 
    911start() { 
    10         $BIN $OPTIONS & 
     12        [ -f $DEFAULT ] && . $DEFAULT 
     13        service_start /usr/sbin/frickin $OPTIONS 
    1114} 
    1215 
    1316stop() { 
    14         killall $BIN 
     17        service_stop /usr/sbin/frickin 
    1518} 
    16  
Note: See TracChangeset for help on using the changeset viewer.