Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated redis 2.6.9. Added start/stop.

  • Loading branch information...
commit f964804ca080312fa36a28d0a209a88f9fc7567d 1 parent 72505a3
@wayneeseguin wayneeseguin authored
View
4 redis/bin/start
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+${service_binary} "${service_config_file}"
+
View
4 redis/bin/stop
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+${service_cli_binary} -p ${service_port} shutdown
+
View
2  redis/config/defaults
@@ -1,3 +1,3 @@
-version=2.6.8
+version=2.6.9
base_url=http://redis.googlecode.com/files
website_url=http://redis.io/
View
14 redis/shell/functions
@@ -1,17 +1,3 @@
#!/bin/sh
-redis_initialize()
-{
- # Redis Configuration.
- true ${service_port:=6379} ${service_bind_interface:="127.0.0.1"}
-
- service_binary="${active_path}/bin/redis-server"
- service_cli_binary="${active_path}/bin/redis-cli"
- service_db_file="${service_db_path}/active/redis.rdb"
-
- if ! string contains "${service_config_file}" "${service_flags[*]}"
- then
- service_flags+=( "${service_config_file}" )
- fi
-}
View
15 redis/shell/initialize
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Redis Configuration.
+true ${service_config_file:="/etc/redis/redis.conf"} ${service_port:="6379"} \
+ ${service_bind_interface:="127.0.0.1"}
+
+ service_binary="${active_path}/bin/redis-server"
+ service_cli_binary="${active_path}/bin/redis-cli"
+ service_db_file="${service_db_path}/active/redis.rdb"
+
+ if ! string contains "${service_config_file}" "${service_flags[*]}"
+ then
+ service_flags+=( "${service_config_file}" )
+ fi
+
Please sign in to comment.
Something went wrong with that request. Please try again.