{"action":"opened","issue":{"url":"https://api.github.com/repos/kelseyhightower/confd/issues/502","repository_url":"https://api.github.com/repos/kelseyhightower/confd","labels_url":"https://api.github.com/repos/kelseyhightower/confd/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/kelseyhightower/confd/issues/502/comments","events_url":"https://api.github.com/repos/kelseyhightower/confd/issues/502/events","html_url":"https://github.com/kelseyhightower/confd/issues/502","id":187874028,"number":502,"title":"The reload_cmd should translate {{.src}} just like check_cmd","user":{"login":"colinmollenhour","id":38738,"avatar_url":"https://avatars.githubusercontent.com/u/38738?v=3","gravatar_id":"","url":"https://api.github.com/users/colinmollenhour","html_url":"https://github.com/colinmollenhour","followers_url":"https://api.github.com/users/colinmollenhour/followers","following_url":"https://api.github.com/users/colinmollenhour/following{/other_user}","gists_url":"https://api.github.com/users/colinmollenhour/gists{/gist_id}","starred_url":"https://api.github.com/users/colinmollenhour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinmollenhour/subscriptions","organizations_url":"https://api.github.com/users/colinmollenhour/orgs","repos_url":"https://api.github.com/users/colinmollenhour/repos","events_url":"https://api.github.com/users/colinmollenhour/events{/privacy}","received_events_url":"https://api.github.com/users/colinmollenhour/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-08T01:02:20Z","updated_at":"2016-11-08T01:02:20Z","closed_at":null,"body":"This was pretty frustrating to wrestle this and finally discover when using debug log level that my reload_cmd was bad..\r\n\r\nExample:\r\n\r\n```\r\n[template]\r\nsrc = \"iptables.sh.tmpl\"\r\ndest = \"/usr/local/firewall/iptables.sh\"\r\nkeys = [${TEMPLATE_KEYS}]\r\nowner = \"root\"\r\nmode = \"0750\"\r\ncheck_cmd = \"/bin/bash -n {{.src}} && {{.src}} | /sbin/iptables-restore --test\"\r\nreload_cmd = \"{{.src}} | /sbin/iptables-restore --counters\"\r\n```"}}
{"actor":{"display_login":"colinmollenhour"}}