This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add legacy memcache session store for using KyotoTycoon with memcached protocol. | |
# Sourced from Rails 3.2 | |
# => https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb | |
# | |
require 'action_dispatch/middleware/session/abstract_store' | |
require 'rack/session/memcache' | |
module ActionDispatch | |
module Session | |
class LegacyMemCacheStore < Rack::Session::Memcache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > /etc/init.d/ktserver <<\_EOF_ | |
#!/bin/sh -e | |
### BEGIN INIT INFO | |
# Provides: ktserver | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |