packages/admin/syslog-ng/files/syslog-ng.init
jow 6b4e74b57b [packages] syslog-ng: fix init script (based on patch by Lee Essen <lee.essen@nowonline.co.uk>)
The syslog-ng start script doesn't stop syslog-ng because it tries to
use pid's instead of the executable name. Very simple patch attached.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@30367 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-07 22:11:18 +00:00

18 lines
267 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=50
start() {
[ -f /etc/syslog-ng/syslog-ng.conf ] || return 1
service_start /usr/sbin/syslog-ng
}
stop() {
service_stop /usr/sbin/syslog-ng
}
reload() {
service_reload /usr/sbin/syslog-ng
}