Changeset 28919


Ignore:
Timestamp:
2011-11-10T00:43:49+01:00 (6 years ago)
Author:
nico
Message:

packages/ulogd: use new service functions

Location:
packages/net/ulogd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ulogd/Makefile

    r26853 r28919  
    1010PKG_NAME:=ulogd 
    1111PKG_VERSION:=1.24 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    2727define Package/ulogd 
    2828  $(call Package/ulogd/Default) 
    29   DEPENDS:=+iptables 
     29  DEPENDS:=+iptables-mod-ulog  
    3030  TITLE:=Netfilter userspace logging daemon 
    3131  MENU:=1 
  • packages/net/ulogd/files/ulogd.init

    r15247 r28919  
    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=ulogd 
    6 DEFAULT=/etc/default/$BIN 
    7 LOG_D=/var/log 
     6PROG="ulogd" 
     7COMMAND="/usr/sbin/$PROG" 
     8DEFAULT="/etc/default/$PROG" 
    89 
    910start() { 
    1011        [ -f $DEFAULT ] && . $DEFAULT 
    11         $BIN $OPTIONS 
     12        service_start $COMMAND $OPTIONS 
    1213} 
    1314 
    1415stop() { 
    15         killall $BIN 
     16        service_stop $COMMAND 
    1617} 
Note: See TracChangeset for help on using the changeset viewer.