{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/34293","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/34293/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/34293/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/34293/events","html_url":"https://github.com/saltstack/salt/issues/34293","id":162262763,"number":34293,"title":"Feature Request service state support \"checker\" i.e. syntax check configuration before restart ","user":{"login":"damon-atkins","id":9368124,"avatar_url":"https://avatars.githubusercontent.com/u/9368124?v=3","gravatar_id":"","url":"https://api.github.com/users/damon-atkins","html_url":"https://github.com/damon-atkins","followers_url":"https://api.github.com/users/damon-atkins/followers","following_url":"https://api.github.com/users/damon-atkins/following{/other_user}","gists_url":"https://api.github.com/users/damon-atkins/gists{/gist_id}","starred_url":"https://api.github.com/users/damon-atkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damon-atkins/subscriptions","organizations_url":"https://api.github.com/users/damon-atkins/orgs","repos_url":"https://api.github.com/users/damon-atkins/repos","events_url":"https://api.github.com/users/damon-atkins/events{/privacy}","received_events_url":"https://api.github.com/users/damon-atkins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-25T04:17:46Z","updated_at":"2016-06-27T16:08:29Z","closed_at":null,"body":"### Description of Issue/Question\r\nConfiguration files can have syntax errors. Some programs come with syntax checking commands to make sure the configuration file is ok.\r\n\r\nIt would be nice if salt \"service\" has an option to run a command  which if return false would prevent the restart from occurring.  However if the service is not running it would not run the check it would just start the service.    \r\n\r\nWhy is this needed.   Its so that if you update the configuration file, make a typo, the service continues to run, rather than being stopped and then fail to start.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/228792999","html_url":"https://github.com/saltstack/salt/issues/34293#issuecomment-228792999","issue_url":"https://api.github.com/repos/saltstack/salt/issues/34293","id":228792999,"user":{"login":"Ch3LL","id":6886822,"avatar_url":"https://avatars.githubusercontent.com/u/6886822?v=3","gravatar_id":"","url":"https://api.github.com/users/Ch3LL","html_url":"https://github.com/Ch3LL","followers_url":"https://api.github.com/users/Ch3LL/followers","following_url":"https://api.github.com/users/Ch3LL/following{/other_user}","gists_url":"https://api.github.com/users/Ch3LL/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch3LL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch3LL/subscriptions","organizations_url":"https://api.github.com/users/Ch3LL/orgs","repos_url":"https://api.github.com/users/Ch3LL/repos","events_url":"https://api.github.com/users/Ch3LL/events{/privacy}","received_events_url":"https://api.github.com/users/Ch3LL/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T16:08:29Z","updated_at":"2016-06-27T16:08:29Z","body":"@damon-atkins I think this is a reasonable request. I'll approve it as a feature request. Thanks :+1: "}}
{"actor":{"display_login":"Ch3LL"}}