summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawomir Lis <slis@gentoo.org>2016-12-29 07:23:33 +0100
committerSlawomir Lis <slis@gentoo.org>2016-12-29 07:23:33 +0100
commitf3eaaf161bf666f9c10b6e333bfaaf1a55a81a0b (patch)
tree51d1c7116fa98716f85689f66ef16a6acda39539 /net-analyzer
parentdev-vcs/gitinspector: fix the license (diff)
downloadgentoo-f3eaaf161bf666f9c10b6e333bfaaf1a55a81a0b.tar.gz
gentoo-f3eaaf161bf666f9c10b6e333bfaaf1a55a81a0b.tar.bz2
gentoo-f3eaaf161bf666f9c10b6e333bfaaf1a55a81a0b.zip
net-analyzer/suricata: fix in init script
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/suricata/files/suricata-3.2-init4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-analyzer/suricata/files/suricata-3.2-init b/net-analyzer/suricata/files/suricata-3.2-init
index b276f4901bb1..9ffedf4fb097 100644
--- a/net-analyzer/suricata/files/suricata-3.2-init
+++ b/net-analyzer/suricata/files/suricata-3.2-init
@@ -26,7 +26,7 @@ else
fi
SURICATAUSER=${SURICATAUSER:-${SURICATA_USER}}
SURICATAGROUP=${SURICATAGROUP:-${SURICATA_GROUP}}
-[ -e ${SURICATACONF} ] && SURICATAOPTS="${SURICATAOPTS} -c ${SURICATACONF}"
+[ -e ${SURICATACONF} ] && SURICATAOPTS="-c ${SURICATACONF} ${SURICATAOPTS}"
description="Suricata IDS/IPS"
extra_commands="checkconfig dump"
@@ -47,7 +47,7 @@ checkconfig() {
checkpath -d /var/run/suricata
fi
if [ ${#SURICATALOGPATH} -gt 0 ]; then
- SURICATALOGFILE=$( basename ${SURICATA_LOG_FILE} )
+ SURICATALOGFILE=$( basename ${SURICATALOGPATH} )
SURICATALOGFILE=${SURICATALOGFILE:-suricata.log}
SURICATALOGPATH=$( dirname ${SURICATALOGPATH} )
if [ ! -d "${SURICATALOGPATH}" ] ; then