mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Merge pull request #9211 from Cynerd/syslog-ng-stop
syslog-ng: improve init and fix service stop
This commit is contained in:
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=syslog-ng
|
PKG_NAME:=syslog-ng
|
||||||
PKG_VERSION:=3.21.1
|
PKG_VERSION:=3.21.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
|
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
|
||||||
PKG_LICENSE:=LGPL-2.1+
|
PKG_LICENSE:=LGPL-2.1+
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006-2016 OpenWrt.org
|
# Copyright (C) 2006-2019 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
@@ -8,11 +8,6 @@ USE_PROCD=1
|
|||||||
start_service() {
|
start_service() {
|
||||||
[ -f /etc/syslog-ng.conf ] || return 1
|
[ -f /etc/syslog-ng.conf ] || return 1
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command /usr/sbin/syslog-ng
|
procd_set_param command /usr/sbin/syslog-ng --foreground
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
reload_service() {
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user