4 result << '-' + @verbosity.to_s
10 result << '-l ' + @listen_ip
13 result << '-U ' + @udp_port.to_s
16 result << '-I ' + @item_size.to_s
18 result << '-t ' + @processorcount.to_s
20 # log to syslog via logger
21 if @syslog && @logfile.empty?
22 result << '2>&1 |/bin/logger &'
24 elsif !@logfile.empty? && !@syslog
25 result << '>> ' + @logfile + ' 2>&1'
28 <%- if scope['osfamily'] != 'Suse' -%>
29 PORT="<%= @tcp_port %>"
31 MAXCONN="<%= @max_connections %>"
32 <% Puppet::Parser::Functions.function('memcached_max_memory') -%>
33 CACHESIZE="<%= scope.function_memcached_max_memory([@max_memory]) %>"
34 OPTIONS="<%= result.join(' ') %>"
36 MEMCACHED_PARAMS="<%= result.join(' ') %>"
38 ## Path: Network/WWW/Memcached
39 ## Description: username memcached should run as
41 ## Default: "memcached"
44 # username memcached should run as
46 MEMCACHED_USER="<%= @user %>"
48 ## Path: Network/WWW/Memcached
49 ## Description: group memcached should be run as
51 ## Default: "memcached"
54 # group memcached should be run as
56 MEMCACHED_GROUP="<%= @user %>"