Skip to content

Commit

Permalink
Daemonize fool!
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Mar 24, 2011
1 parent 3ee380e commit a1aaaa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions redis/bin/install
Expand Up @@ -96,6 +96,7 @@ install_redis_conf()
sed -e "s#pidfile .*\$#pidfile ${redis_pid_file}#" \
-e "s#logfile .*\$#logfile ${redis_log_file}#" \
-e "s#dir .*\$#dir ${redis_db_path}#" \
-e "s#^.*daemonize .*\$#daemonize yes#" \
-e "s#dbfilename .*\$#dbfilename ${redis_db_file}#" \
-e "s#port .*\$#port ${redis_port}#" \
-e "s#bind .*\$#bind ${redis_bind_interface}#" \
Expand Down
4 changes: 2 additions & 2 deletions redis/templates/redis.init.template
Expand Up @@ -64,9 +64,9 @@ redis_start()
log "#starting Redis as $redis_user using $redis_config_file..."

if [[ "$redis_user" != "$USER" ]] ; then
(su "$redis_user" -c "exec \"$redis_server_binary\" \"$redis_config_file\"")&
su "$redis_user" -c "\"$redis_server_binary\" \"$redis_config_file\""
else
(exec "$redis_server_binary" "$redis_config_file" )&
"$redis_server_binary" "$redis_config_file"
fi
fi
return $?
Expand Down

0 comments on commit a1aaaa5

Please sign in to comment.