# Systemd unit file for <%= @instance %>

[Unit]
Description=memcached instance <%= @instance %>
After=network.target

[Service]
LimitNOFILE=<%= @ulimit %> \
ExecStart=<%= @memcached_binary %> \
  -m <%= @memory %> \
  -U <%= @udp_port %> \
  -p <%= @port %> \
  -u <%= @user %> \
  -l <%= @listen %> \
  -c <%= @maxconn %> \
  -I <%= @max_object_size %><% if @experimental_options.any? %> \
  -o <%= @experimental_options.join(', ') %><% end %><% if @threads %> \
  -t <%= @threads %><% end %>

[Install]
WantedBy=multi-user.target

# Systemd unit file for <%= @instance %>

[Unit]
Description=memcached instance <%= @instance %>
After=network.target

[Service]
LimitNOFILE=<%= @ulimit %>
ExecStart=<%= @memcached_binary %> \
  -m <%= @memory %> \
  -U <%= @udp_port %> \
  -p <%= @port %> \
  -u <%= @user %> \
  -l <%= @listen %> \
  -c <%= @maxconn %> \
  -I <%= @max_object_size %><% if @experimental_options.any? %> \
  -o <%= @experimental_options.join(', ') %><% end %><% if @threads %> \
  -t <%= @threads %><% end %>

[Install]
WantedBy=multi-user.target

Fix ulimit to not have \ in it
Fix ulimit to not have \ in it

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
