Files
Jo-Philipp Wich b36b935d5f [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.

SVN-Revision: 30367
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
}