mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Change how redis-server is run during btests, removing redis.conf
This commit is contained in:
parent
9ed3e33f97
commit
b81e876ec8
7 changed files with 26 additions and 94 deletions
21
testing/scripts/run-redis-server
Executable file
21
testing/scripts/run-redis-server
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eux
|
||||
|
||||
if ! redis-server --version; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage $0 <listen_port>" >2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
listen_port=$1
|
||||
|
||||
exec redis-server \
|
||||
--bind 127.0.0.1 \
|
||||
--port ${listen_port} \
|
||||
--loglevel verbose \
|
||||
--logfile redis.log \
|
||||
--pidfile redis.pid \
|
||||
--databases 1
|
Loading…
Add table
Add a link
Reference in a new issue