[Oisf-users] suricata does not start in a script
James Moe
jimoe at sohnen-moe.com
Tue May 5 22:36:51 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/04/2015 04:40 PM, James Moe wrote:
> ----[ command ]---- /usr/local/bin/suricata -v --pidfile
> /usr/local/var/run/suricata.pid -c
> /usr/local/etc/suricata/suricata.yaml -i eth0 | tee
> /usr/local/var/log/suricata/verbose.log & ----[ end ]----
>
For the script version *anything* placed after "-i eth0" when
defining the command string CMD, causes the BPF error.
start) CMD="${SURI} ${OPT3} ${OPT2} ${OPT1} -i eth0"
ethtool -K eth0 gro off
${CMD} &
;;
So to add the "-v ..." or " | tee ...", and the "&", it must be done
separately as indicated by "${CMD} &" above.
- --
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlVJRgMACgkQzTcr8Prq0ZPX2wCfVRJdXs/hzalHCyyalK+uu5xm
sgwAnAmN5mX1ZgEznBozdaeTkYz/sriY
=vM5s
-----END PGP SIGNATURE-----
More information about the Oisf-users
mailing list