Sha256: 8e35eeaf0c3df95b068db747a4a83698cfe18ec42ed0fd262e5a869bb280cedf
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
namespace :memcached do desc <<-DESC Install memcached monit hooks. memcached_pid_path: Path to memcached pid file. Defaults to /var/run/memcached.pid set :memcached_pid_path, "/var/run/memcached.pid" memcached_port: Memcached port. Defaults to 11211. set :memcached_port, 11211 DESC task :install_monit do # Settings fetch_or_default(:memcached_pid_path, "/var/run/memcached.pid") fetch_or_default(:memcached_port, 11211) put template.load("memcached/memcached.monitrc.erb", binding), "/tmp/memcached.monitrc" sudo "install -o root /tmp/memcached.monitrc /etc/monit/memcached.monitrc" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.1.8 | lib/recipes/memcached.rb |
capitate-0.1.9 | lib/recipes/memcached.rb |