{ "id": "170236", "key": "DAEMON-120", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-06T21:55:39.000+0000", "created": "2017-11-06T20:37:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-11-06T21:55:39.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15049", "name": "appcd", "description": "Bootstrap, appcd CLI commands (start, stop, restart, exec, logcat, config, status)" } ], "description": "h5.Description\r\n\r\nWhen calling {{appcd start}} when the daemon is already running, the process just exits with no logging, it also appears that the appropriate error code is not set (although I think this could be a separate issue as we don't appear to process.exit).\r\n\r\nIf I remove the [unref|https://github.com/appcelerator/appc-daemon/blob/master/packages/appcd-nodejs/src/nodejs.js#L435] or [dont spawn as detached|https://github.com/appcelerator/appc-daemon/blob/master/packages/appcd/src/common.js#L152] then I get the correct logging", "attachment": [], "flagged": false, "summary": "appcd: calling appcd start when daemon is running does not log anything", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 969, "state": "closed", "name": "2017 Sprint 23 Tooling", "startDate": "2017-11-05T16:36:50.292Z", "endDate": "2017-11-19T16:36:00.000Z", "completeDate": "2017-11-20T18:58:45.002Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "430179", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Not sure about Windows, but on macOS removing the \"detached\" fixes the issue and things appear to daemonize as expected. Does Windows still work if we only remove \"detached\", but leave the unref()?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-11-06T20:58:26.000+0000", "updated": "2017-11-06T20:58:26.000+0000" }, { "id": "430182", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I think we added that due to the process not hanging around for the daemon to start? https://github.com/appcelerator/appc-daemon/pull/95", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-06T21:12:00.000+0000", "updated": "2017-11-06T21:12:00.000+0000" }, { "id": "430184", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/appc-daemon/pull/112", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-06T21:49:52.000+0000", "updated": "2017-11-06T21:49:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }