{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/1134","labels_url":"https://api.github.com/repos/facebook/flow/issues/1134/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/1134/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/1134/events","html_url":"https://github.com/facebook/flow/issues/1134","id":119368945,"number":1134,"title":"`tail -f log` does not survive `flow stop`, `flow start`","user":{"login":"jamesgpearce","id":90942,"avatar_url":"https://avatars.githubusercontent.com/u/90942?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesgpearce","html_url":"https://github.com/jamesgpearce","followers_url":"https://api.github.com/users/jamesgpearce/followers","following_url":"https://api.github.com/users/jamesgpearce/following{/other_user}","gists_url":"https://api.github.com/users/jamesgpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesgpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesgpearce/subscriptions","organizations_url":"https://api.github.com/users/jamesgpearce/orgs","repos_url":"https://api.github.com/users/jamesgpearce/repos","events_url":"https://api.github.com/users/jamesgpearce/events{/privacy}","received_events_url":"https://api.github.com/users/jamesgpearce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-29T16:24:23Z","updated_at":"2015-11-29T22:07:05Z","closed_at":null,"body":"You need to kill and rerun `tail -f` to see logs for a new flow server, even though it logs to the same file. I don't have enough unix foo to know how this could be, or if it could even be argued to be by design. \r\n\r\nBut it's annoying :)\r\n\r\nShell 1:\r\n```\r\njpearcembp:~ jpearce$ mkdir test\r\njpearcembp:~ jpearce$ cd test/\r\njpearcembp:test jpearce$ flow init\r\njpearcembp:test jpearce$ flow start\r\nSpawned flow server (child pid=24986)\r\nLogs will go to /private/tmp/flow/zSUserszSjpearcezStest.log\r\n```\r\n\r\nShell 2:\r\n```\r\njpearcembp:test jpearce$ tail -f /private/tmp/flow/zSUserszSjpearcezStest.log\r\n[2015-11-29 08:15:03] Initializing Server (This might take some time)\r\n[2015-11-29 08:15:03] executable=/Library/Application Support/Flow/flow-v0.18.1/flow\r\n[2015-11-29 08:15:03] version=0.18.1\r\n[2015-11-29 08:15:03] Parsing\r\n[2015-11-29 08:15:03] Running local inference\r\n[2015-11-29 08:15:03] Merging\r\n[2015-11-29 08:15:03] Server is READY\r\n[2015-11-29 08:15:03] Took 0.227305 seconds to initialize.\r\n```\r\n\r\nShell 1:\r\n```\r\njpearcembp:test jpearce$ flow stop\r\nTrying to connect to server for /Users/jpearce/test\r\nAttempting to nicely kill server for /Users/jpearce/test\r\nSuccessfully killed server for /Users/jpearce/test\r\n```\r\n\r\nShell 2 (still tailing):\r\n```\r\nStatus: Error\r\nSent KILL command by client. Dying.\r\n```\r\n\r\nShell 1:\r\n```\r\njpearcembp:test jpearce$ flow start\r\nSpawned flow server (child pid=25069)\r\nLogs will go to /private/tmp/flow/zSUserszSjpearcezStest.log\r\n```\r\n\r\nShell 2 (still tailing):\r\n```\r\n```\r\n\r\n...crickets...\r\n\r\n```\r\n^C\r\njpearcembp:test jpearce$ tail -f /private/tmp/flow/zSUserszSjpearcezStest.log\r\n[2015-11-29 08:15:26] Initializing Server (This might take some time)\r\n[2015-11-29 08:15:26] executable=/Library/Application Support/Flow/flow-v0.18.1/flow\r\n[2015-11-29 08:15:26] version=0.18.1\r\n[2015-11-29 08:15:26] Parsing\r\n[2015-11-29 08:15:26] Running local inference\r\n[2015-11-29 08:15:27] Merging\r\n[2015-11-29 08:15:27] Server is READY\r\n[2015-11-29 08:15:27] Took 0.231021 seconds to initialize.\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/160475448","html_url":"https://github.com/facebook/flow/issues/1134#issuecomment-160475448","issue_url":"https://api.github.com/repos/facebook/flow/issues/1134","id":160475448,"user":{"login":"gabelevi","id":1887264,"avatar_url":"https://avatars.githubusercontent.com/u/1887264?v=3","gravatar_id":"","url":"https://api.github.com/users/gabelevi","html_url":"https://github.com/gabelevi","followers_url":"https://api.github.com/users/gabelevi/followers","following_url":"https://api.github.com/users/gabelevi/following{/other_user}","gists_url":"https://api.github.com/users/gabelevi/gists{/gist_id}","starred_url":"https://api.github.com/users/gabelevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabelevi/subscriptions","organizations_url":"https://api.github.com/users/gabelevi/orgs","repos_url":"https://api.github.com/users/gabelevi/repos","events_url":"https://api.github.com/users/gabelevi/events{/privacy}","received_events_url":"https://api.github.com/users/gabelevi/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T22:07:05Z","updated_at":"2015-11-29T22:07:05Z","body":"Do `tail -F` or `less +F` work? Clearing the log file is by design and `tail -f` not surviving is expected, but there may be an extra step we're forgetting"}}