Merge pull request #9211 from Cynerd/syslog-ng-stop

syslog-ng: improve init and fix service stop
This commit is contained in:
Josef Schlehofer 2019-06-10 11:55:37 +02:00 committed by GitHub
commit a29655e664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng
PKG_VERSION:=3.21.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
PKG_LICENSE:=LGPL-2.1+

View File

@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2016 OpenWrt.org
# Copyright (C) 2006-2019 OpenWrt.org
START=50
@ -8,11 +8,6 @@ USE_PROCD=1
start_service() {
[ -f /etc/syslog-ng.conf ] || return 1
procd_open_instance
procd_set_param command /usr/sbin/syslog-ng
procd_set_param command /usr/sbin/syslog-ng --foreground
procd_close_instance
}
reload_service() {
stop
start
}