systemd_twemproxy-template.j2 571 B

12345678910111213141516171819
  1. #####################################################################
  2. # {{ ansible_managed }}
  3. #####################################################################
  4. [Unit]
  5. Description=Redis Twemproxy Template
  6. After=network.target
  7. [Service]
  8. WorkingDirectory=/redis
  9. Type=simple
  10. LimitNOFILE=65535
  11. User=root
  12. ExecStart=/opt/consul-template/bin/consul-template -consul="{{ consul_server_nodes[0] }}:8500" -template '/etc/nutcracker.ctmpl:/etc/nutcracker.yml:/bin/systemctl kill -s HUP twemproxy.service'
  13. [Install]
  14. WantedBy=multi-user.target
  15. Alias=twemproxy-template.service