summaryrefslogtreecommitdiff
path: root/package/syslog-ng
diff options
context:
space:
mode:
Diffstat (limited to 'package/syslog-ng')
-rw-r--r--package/syslog-ng/files/syslog-ng.init4
1 files changed, 2 insertions, 2 deletions
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