Merge pull request #9211 from Cynerd/syslog-ng-stop
syslog-ng: improve init and fix service stop
This commit is contained in:
commit
a29655e664
|
@ -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+
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue