{"action":"created","issue":{"url":"https://api.github.com/repos/Metaswitch/homestead/issues/263","labels_url":"https://api.github.com/repos/Metaswitch/homestead/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/Metaswitch/homestead/issues/263/comments","events_url":"https://api.github.com/repos/Metaswitch/homestead/issues/263/events","html_url":"https://github.com/Metaswitch/homestead/issues/263","id":110468158,"number":263,"title":"eval on start-stop-daemon in homestead's init.d script exceeds line limit?","user":{"login":"dtheobald","id":6430927,"avatar_url":"https://avatars.githubusercontent.com/u/6430927?v=3","gravatar_id":"","url":"https://api.github.com/users/dtheobald","html_url":"https://github.com/dtheobald","followers_url":"https://api.github.com/users/dtheobald/followers","following_url":"https://api.github.com/users/dtheobald/following{/other_user}","gists_url":"https://api.github.com/users/dtheobald/gists{/gist_id}","starred_url":"https://api.github.com/users/dtheobald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtheobald/subscriptions","organizations_url":"https://api.github.com/users/dtheobald/orgs","repos_url":"https://api.github.com/users/dtheobald/repos","events_url":"https://api.github.com/users/dtheobald/events{/privacy}","received_events_url":"https://api.github.com/users/dtheobald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rkd-msw","id":4363492,"avatar_url":"https://avatars.githubusercontent.com/u/4363492?v=3","gravatar_id":"","url":"https://api.github.com/users/rkd-msw","html_url":"https://github.com/rkd-msw","followers_url":"https://api.github.com/users/rkd-msw/followers","following_url":"https://api.github.com/users/rkd-msw/following{/other_user}","gists_url":"https://api.github.com/users/rkd-msw/gists{/gist_id}","starred_url":"https://api.github.com/users/rkd-msw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkd-msw/subscriptions","organizations_url":"https://api.github.com/users/rkd-msw/orgs","repos_url":"https://api.github.com/users/rkd-msw/repos","events_url":"https://api.github.com/users/rkd-msw/events{/privacy}","received_events_url":"https://api.github.com/users/rkd-msw/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-10-08T14:48:22Z","updated_at":"2015-10-08T16:04:47Z","closed_at":null,"body":"Using eval in homestead's init.d script causes as error that appears to be some kind of line length limit. For example, running the following causes an error in the script:\r\n```\r\neval start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/homestead.pid --exec /usr/share/clearwater/bin/homestead --chuid homestead --chdir /etc/clearwater -- --localhost=192.168.159.169 --home-domain=os3.richlab.datcon.co.uk --diameter-conf=/var/lib/homestead/homestead.conf --dns-server=192.168.159.161 --http=192.168.159.169 --http-threads=100 --dest-realm=os3.richlab.datcon.co.uk --dest-host=0.0.0.0 --hss-peer= --max-peers=2 '--server-name=sip:sprout.os3.richlab.datcon.co.uk;transport=TCP' --impu-cache-ttl=0 --hss-reregistration-time=1800 --sprout-http-name=sprout.os3.richlab.datcon.co.uk:9888 --scheme-unknown=unknown --alarms-enabled --access-log=/var/log/homestead --log-file=/var/log/homestead --log-level=5 --sas=sas.os3.richlab.datcon.co.uk,homestead@homestead-1.os3.richlab.datcon.co.uk\r\nbash: --impu-cache-ttl=0: command not found\r\n```\r\nWhile running it without using eval works fine.\r\n\r\nI've removed the eval in my local version since I don't think it's needed anyway."},"comment":{"url":"https://api.github.com/repos/Metaswitch/homestead/issues/comments/146593710","html_url":"https://github.com/Metaswitch/homestead/issues/263#issuecomment-146593710","issue_url":"https://api.github.com/repos/Metaswitch/homestead/issues/263","id":146593710,"user":{"login":"rkd-msw","id":4363492,"avatar_url":"https://avatars.githubusercontent.com/u/4363492?v=3","gravatar_id":"","url":"https://api.github.com/users/rkd-msw","html_url":"https://github.com/rkd-msw","followers_url":"https://api.github.com/users/rkd-msw/followers","following_url":"https://api.github.com/users/rkd-msw/following{/other_user}","gists_url":"https://api.github.com/users/rkd-msw/gists{/gist_id}","starred_url":"https://api.github.com/users/rkd-msw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkd-msw/subscriptions","organizations_url":"https://api.github.com/users/rkd-msw/orgs","repos_url":"https://api.github.com/users/rkd-msw/repos","events_url":"https://api.github.com/users/rkd-msw/events{/privacy}","received_events_url":"https://api.github.com/users/rkd-msw/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T16:04:47Z","updated_at":"2015-10-08T16:04:47Z","body":"Thanks! I've investigated separately, and found that using quotes in the init.d script resolves the issue. Can you confirm that https://github.com/Metaswitch/homestead/pull/264 fixes the issue you were seeing? If so, I'll raise a separate issue to use `eval` and quotes in all our init.d scripts, for consistency."}}