Permalink
Browse files

fork & exec :)

  • Loading branch information...
1 parent 0aab444 commit 5fafb7aa5c3f776fe4d5078aa1eb5b9c2e404d79 @wayneeseguin wayneeseguin committed Mar 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 redis/templates/redis.init.template
View
4 redis/templates/redis.init.template
@@ -64,9 +64,9 @@ redis_start()
log "#starting Redis as $redis_user using $redis_config_file..."
if [[ "$redis_user" != "$USER" ]] ; then
- nohup su "$redis_user" -c "\"$redis_server_binary\" \"$redis_config_file\""&
+ (su "$redis_user" -c "exec \"$redis_server_binary\" \"$redis_config_file\"")&
else
- nohup "$redis_server_binary" "$redis_config_file" &
+ (exec "$redis_server_binary" "$redis_config_file" )&
fi
fi
return $?

0 comments on commit 5fafb7a

Please sign in to comment.