{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu-build/issues/108","labels_url":"https://api.github.com/repos/sensu/sensu-build/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu-build/issues/108/comments","events_url":"https://api.github.com/repos/sensu/sensu-build/issues/108/events","html_url":"https://github.com/sensu/sensu-build/issues/108","id":59039541,"number":108,"title":"EMBEDDED_RUBY is not evaluated in systemd scripts","user":{"login":"Debilski","id":216179,"avatar_url":"https://avatars.githubusercontent.com/u/216179?v=3","gravatar_id":"","url":"https://api.github.com/users/Debilski","html_url":"https://github.com/Debilski","followers_url":"https://api.github.com/users/Debilski/followers","following_url":"https://api.github.com/users/Debilski/following{/other_user}","gists_url":"https://api.github.com/users/Debilski/gists{/gist_id}","starred_url":"https://api.github.com/users/Debilski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Debilski/subscriptions","organizations_url":"https://api.github.com/users/Debilski/orgs","repos_url":"https://api.github.com/users/Debilski/repos","events_url":"https://api.github.com/users/Debilski/events{/privacy}","received_events_url":"https://api.github.com/users/Debilski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-26T08:54:30Z","updated_at":"2015-07-28T15:47:19Z","closed_at":null,"body":"In the systemd scripts even when adding a setting `EnvironmentFile=/etc/defaults/sensu`, the environment variable `EMBEDDED_RUBY` is never checked."},"comment":{"url":"https://api.github.com/repos/sensu/sensu-build/issues/comments/125660100","html_url":"https://github.com/sensu/sensu-build/issues/108#issuecomment-125660100","issue_url":"https://api.github.com/repos/sensu/sensu-build/issues/108","id":125660100,"user":{"login":"Debilski","id":216179,"avatar_url":"https://avatars.githubusercontent.com/u/216179?v=3","gravatar_id":"","url":"https://api.github.com/users/Debilski","html_url":"https://github.com/Debilski","followers_url":"https://api.github.com/users/Debilski/followers","following_url":"https://api.github.com/users/Debilski/following{/other_user}","gists_url":"https://api.github.com/users/Debilski/gists{/gist_id}","starred_url":"https://api.github.com/users/Debilski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Debilski/subscriptions","organizations_url":"https://api.github.com/users/Debilski/orgs","repos_url":"https://api.github.com/users/Debilski/repos","events_url":"https://api.github.com/users/Debilski/events{/privacy}","received_events_url":"https://api.github.com/users/Debilski/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T15:47:19Z","updated_at":"2015-07-28T15:47:19Z","body":"I’d like to help, but unfortunately I don’t see how to make the systemd script dependent on the environment variable. The upstart solution does not work there (unless an additional wrapper script is added around the ExecStart."}}