Skip to content

Commit

Permalink
fixes to install script
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir volk committed Oct 4, 2011
1 parent 909aee2 commit 9a01957
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion utils/install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,15 @@ if [ ! -f "$REDIS_EXECUTABLE" ] ; then

fi


#render the tmplates
TMP_FILE="/tmp/$REDIS_PORT.conf"
TPL_FILE="./redis.conf.tpl"
INIT_TPL_FILE="./redis_init_script.tpl"
INIT_SCRIPT_DEST="/etc/init.d/redis_$REDIS_PORT"
PIDFILE="/var/run/redis_$REDIS_PORT.pid"



#check the default for redis cli
CLI_EXEC=`which redis-cli`
Expand All @@ -126,8 +130,9 @@ REDIS_INIT_HEADER=\
#Configurations injected by install_server below....\n\n
EXEC=$REDIS_EXECUTABLE\n
CLIEXEC=$CLI_EXEC\n
PIDFILE=/var/run/redis_${REDIS_PORT}.pid\n
PIDFILE=$PIDFILE\n
CONF=\"$REDIS_CONFIG_FILE\"\n\n
REDISPORT=\"$REDIS_PORT\"\n\n
###############\n\n"

#combine the header and the template (which is actually a static footer)
Expand Down
2 changes: 1 addition & 1 deletion utils/redis.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ daemonize yes

# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
# default. You can specify a custom pid file location here.
pidfile /var/run/redis.pid
pidfile $PIDFILE

# Accept connections on the specified port, default is 6379.
# If port 0 is specified Redis will not listen on a TCP socket.
Expand Down

0 comments on commit 9a01957

Please sign in to comment.