diff options
author | mspo <mspo@pkgsrc.org> | 2013-06-13 18:26:02 +0000 |
---|---|---|
committer | mspo <mspo@pkgsrc.org> | 2013-06-13 18:26:02 +0000 |
commit | 8f1ab5f5df7992770453e3dbf15b81ce32dc8530 (patch) | |
tree | 2d6424612aa7a7f9c7af5a432fa646c43bf6d264 /databases/redis | |
parent | 790747e3f7d1a178ab91afe797b2bd0bef08c901 (diff) | |
download | pkgsrc-8f1ab5f5df7992770453e3dbf15b81ce32dc8530.tar.gz |
unless a config file is given in rc.conf, default to bind localhost and run daemonized
Diffstat (limited to 'databases/redis')
-rw-r--r-- | databases/redis/TODO | 1 | ||||
-rw-r--r-- | databases/redis/files/redis.sh | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/databases/redis/TODO b/databases/redis/TODO index 3df6127bb80..c5b6b0e11d3 100644 --- a/databases/redis/TODO +++ b/databases/redis/TODO @@ -2,3 +2,4 @@ CVE-2013-0178 CVE-2013-0180 On a pkgsrc default install, redis listens to more than localhost. +-- The NetBSD example rc script no longer does this diff --git a/databases/redis/files/redis.sh b/databases/redis/files/redis.sh index 74cfa247a6d..3276fe2f9d2 100644 --- a/databases/redis/files/redis.sh +++ b/databases/redis/files/redis.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: redis.sh,v 1.1 2013/06/13 17:41:34 mspo Exp $ +# $NetBSD: redis.sh,v 1.2 2013/06/13 18:26:02 mspo Exp $ # # PROVIDE: redis # REQUIRE: DAEMON network @@ -14,12 +14,12 @@ name="redis" rcvar=$name command="@PREFIX@/bin/redis-server" redis_user="@REDIS_USER@" -command_args="@PKG_SYSCONFDIR@/${name}.conf" +redis_flags="${redis_flags:- --bind 127.0.0.1 --daemonize yes}" if [ -f /etc/rc.subr ]; then load_rc_config $name run_rc_command "$1" else echo -n "${name}" - @SU@ -m ${redis_user} -c "${command} ${command_args}" + @SU@ -m ${redis_user} -c "${command}" fi |