{"action":"created","issue":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/2655","repository_url":"https://api.github.com/repos/supercollider/supercollider","labels_url":"https://api.github.com/repos/supercollider/supercollider/issues/2655/labels{/name}","comments_url":"https://api.github.com/repos/supercollider/supercollider/issues/2655/comments","events_url":"https://api.github.com/repos/supercollider/supercollider/issues/2655/events","html_url":"https://github.com/supercollider/supercollider/issues/2655","id":201174516,"number":2655,"title":"sclang fails to start in background in a script","user":{"login":"dvarrazzo","id":199429,"avatar_url":"https://avatars0.githubusercontent.com/u/199429?v=4","gravatar_id":"","url":"https://api.github.com/users/dvarrazzo","html_url":"https://github.com/dvarrazzo","followers_url":"https://api.github.com/users/dvarrazzo/followers","following_url":"https://api.github.com/users/dvarrazzo/following{/other_user}","gists_url":"https://api.github.com/users/dvarrazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/dvarrazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvarrazzo/subscriptions","organizations_url":"https://api.github.com/users/dvarrazzo/orgs","repos_url":"https://api.github.com/users/dvarrazzo/repos","events_url":"https://api.github.com/users/dvarrazzo/events{/privacy}","received_events_url":"https://api.github.com/users/dvarrazzo/received_events","type":"User","site_admin":false},"labels":[{"id":4413795,"url":"https://api.github.com/repos/supercollider/supercollider/labels/bug","name":"bug","color":"fc2929","default":true},{"id":4477094,"url":"https://api.github.com/repos/supercollider/supercollider/labels/comp:%20sclang","name":"comp: sclang","color":"CFFF7D","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-01-17T04:35:49Z","updated_at":"2018-03-11T17:46:42Z","closed_at":null,"author_association":"NONE","body":"Reproducible with this simple script:\r\n\r\n```sh\r\n#!/bin/bash\r\nsclang &\r\n```\r\n\r\nrunning it produces:\r\n\r\n```\r\n$ ./test.sh \r\npi@raspberrypi:~/hitomi-2017-01 $ terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'\r\n  what():  assign: Operation not permitted\r\n```\r\n\r\nrunning `sclang &` from command line works as expected.\r\n\r\nThis was tested on a raspberry pi using master at 72ff009a88cb25b32b8b3b5faf5465af8b329f6f\r\n\r\nThe issue happens trying to run sclang from a systemd unit. It was [reported here too](http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/start-sclang-with-systemctl-td7610429.html)"},"comment":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/comments/372134165","html_url":"https://github.com/supercollider/supercollider/issues/2655#issuecomment-372134165","issue_url":"https://api.github.com/repos/supercollider/supercollider/issues/2655","id":372134165,"user":{"login":"simonvanderveldt","id":204286,"avatar_url":"https://avatars0.githubusercontent.com/u/204286?v=4","gravatar_id":"","url":"https://api.github.com/users/simonvanderveldt","html_url":"https://github.com/simonvanderveldt","followers_url":"https://api.github.com/users/simonvanderveldt/followers","following_url":"https://api.github.com/users/simonvanderveldt/following{/other_user}","gists_url":"https://api.github.com/users/simonvanderveldt/gists{/gist_id}","starred_url":"https://api.github.com/users/simonvanderveldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonvanderveldt/subscriptions","organizations_url":"https://api.github.com/users/simonvanderveldt/orgs","repos_url":"https://api.github.com/users/simonvanderveldt/repos","events_url":"https://api.github.com/users/simonvanderveldt/events{/privacy}","received_events_url":"https://api.github.com/users/simonvanderveldt/received_events","type":"User","site_admin":false},"created_at":"2018-03-11T17:46:42Z","updated_at":"2018-03-11T17:46:42Z","author_association":"NONE","body":"Has anyone been able to look into this?\r\n\r\nIt seems real issue is that `sclang` has no proper means of running in the background. It has a `-D Enter daemon mode (no input)` flag, but that doesn't do much apart from not taking input, which is not really what daemon mode means to most people ;)\r\n\r\nIf it would run as a normal daemon in the background no workarounds with backgrounding via shell scripts would be necessary."}}
{"actor":{"display_login":"simonvanderveldt"}}