Browse Source

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

syslog-ng: improve init and fix service stop
lilik-openwrt-22.03
Josef Schlehofer 6 years ago
committed by GitHub
parent
commit
a29655e664
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions
  1. +1
    -1
      admin/syslog-ng/Makefile
  2. +2
    -7
      admin/syslog-ng/files/syslog-ng.init

+ 1
- 1
admin/syslog-ng/Makefile View File

@ -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+


+ 2
- 7
admin/syslog-ng/files/syslog-ng.init View File

@ -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
}

Loading…
Cancel
Save