Browse Source

syslog-ng: add syntax check to startup script

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
lilik-openwrt-22.03
Philip Prindeville 7 years ago
parent
commit
08a13fb27a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      admin/syslog-ng/files/syslog-ng.init

+ 6
- 0
admin/syslog-ng/files/syslog-ng.init View File

@ -12,6 +12,12 @@ config_file=/etc/syslog-ng.conf
start() {
[ -f $config_file ] || return 1
if ! $PROG -s 2>/dev/null ; then
echo "Couldn't parse $(basename $config_file)" >&2
exit 1
fi
service_start $PROG --process-mode background \
-p $SERVICE_PID_FILE
}


Loading…
Cancel
Save