Changeset 30168


Ignore:
Timestamp:
2012-02-05T04:20:23+01:00 (5 years ago)
Author:
jow
Message:

[packages_10.03.2] syslog-ng: merge r28891

Location:
branches/packages_10.03.2/admin/syslog-ng
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.2/admin/syslog-ng/Makefile

    r19605 r30168  
    11# 
    2 # Copyright (C) 2006-2010 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:=syslog-ng 
    1111PKG_VERSION:=1.6.12 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313PKG_MD5SUM:=a3cbfdb6e1e5beea181a7349749719f3 
    1414 
  • branches/packages_10.03.2/admin/syslog-ng/files/syslog-ng.init

    r10734 r30168  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
     6SERVICE_USE_PID=1 
     7 
    58start() { 
    6   [ -f /etc/syslog-ng/syslog-ng.conf ] || { 
    7     echo "/etc/syslog-ng/syslog-ng.conf does not exist !"; 
    8     exit 0; 
    9   }; 
    10   [ -d /var/run ] || mkdir -p /var/run 
    11   [ -x /usr/sbin/syslog-ng ] && /usr/sbin/syslog-ng 
     9        [ -f /etc/syslog-ng.conf ] || return 1 
     10        service_start /usr/sbin/syslog-ng 
    1211} 
    1312 
    1413stop() { 
    15   killall syslog-ng 
    16 } 
    17  
    18 restart() { 
    19         stop 
    20         sleep 1 
    21         start 
     14        service_stop /usr/sbin/syslog-ng 
    2215} 
    2316 
    2417reload() { 
    25         kill -HUP `cat /var/run/syslog-ng.pid` &>/dev/null 
     18        service_reload /usr/sbin/syslog-ng 
    2619} 
    27  
Note: See TracChangeset for help on using the changeset viewer.