From 0a96e4538fe6552dd75aa939b249030f4cdfd77f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 30 Dec 2010 22:57:30 +0100 Subject: fix startup scripts, fix stop routine --- package/syslog-ng/files/syslog-ng.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/syslog-ng/files') diff --git a/package/syslog-ng/files/syslog-ng.init b/package/syslog-ng/files/syslog-ng.init index 2cc6ab8b6..c062d0bc8 100644 --- a/package/syslog-ng/files/syslog-ng.init +++ b/package/syslog-ng/files/syslog-ng.init @@ -15,10 +15,10 @@ start) echo "/etc/syslog-ng/syslog-ng.conf does not exist !"; exit 0; }; - [ -x /usr/sbin/syslog-ng ] && /usr/sbin/syslog-ng + /usr/sbin/syslog-ng ;; stop) - pkill syslog-ng + kill $(pgrep -f /usr/sbin/syslog-ng) ;; restart) sh $0 stop -- cgit v1.2.3