{"action":"created","issue":{"url":"https://api.github.com/repos/guard/guard/issues/727","labels_url":"https://api.github.com/repos/guard/guard/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/guard/guard/issues/727/comments","events_url":"https://api.github.com/repos/guard/guard/issues/727/events","html_url":"https://github.com/guard/guard/issues/727","id":54374890,"number":727,"title":"Error when restarting `guard` from bin/guard","user":{"login":"deivid-rodriguez","id":2887858,"avatar_url":"https://avatars.githubusercontent.com/u/2887858?v=3","gravatar_id":"","url":"https://api.github.com/users/deivid-rodriguez","html_url":"https://github.com/deivid-rodriguez","followers_url":"https://api.github.com/users/deivid-rodriguez/followers","following_url":"https://api.github.com/users/deivid-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/deivid-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/deivid-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deivid-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/deivid-rodriguez/orgs","repos_url":"https://api.github.com/users/deivid-rodriguez/repos","events_url":"https://api.github.com/users/deivid-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/deivid-rodriguez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guard/guard/labels/bug","name":"bug","color":"ff0000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-14T20:51:42Z","updated_at":"2015-01-15T09:11:40Z","closed_at":"2015-01-14T21:56:55Z","body":"Hi, first of all, thanks for your awesome late work in guard and its plugins! :+1: \r\n\r\nSo I edited my Guardfile and `guard` exited and pointed me [here](https://github.com/guard/guard/wiki/Guard-2.10.3-exits-when-Guardfile-is-changed). I read it and decided to edit `bin/guard` and go for the alternative workaround. This is want I wrote\r\n\r\n    #!/usr/bin/env ruby\r\n    #\r\n    # The application 'guard' is installed as part of a gem, and\r\n    # this file is here to facilitate running it.\r\n    #\r\n    require 'pathname'\r\n    ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',\r\n                                               Pathname.new(__FILE__).realpath)\r\n\r\n    require 'rubygems'\r\n    require 'bundler/setup'\r\n\r\n    begin\r\n      load Gem.bin_path('guard', 'guard')\r\n    rescue SystemExit => e\r\n      exit(e.status) unless e.status == 2\r\n      STDOUT.puts 'Restarting guard...'\r\n      retry\r\n    end\r\n\r\nAnd I get this error message I'm getting\r\n\r\n    21:39:37 - INFO - Bye bye...\r\n    Restarting guard...\r\n    /home/davidr/.rvm/gems/ruby-2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/device/writer.rb:58:in `sync=': closed stream (IOError)\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/device/writer.rb:58:in `initialize'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/logger.rb:281:in `new'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/logger.rb:281:in `open_device'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/logger.rb:66:in `initialize'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/guard-2.11.1/lib/guard/ui.rb:27:in `new'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/guard-2.11.1/lib/guard/ui.rb:27:in `logger'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/guard-2.11.1/lib/guard/aruba_adapter.rb:49:in `ensure in execute'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/guard-2.11.1/lib/guard/aruba_adapter.rb:56:in `execute'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/guard-2.11.1/lib/guard/aruba_adapter.rb:19:in `execute!'\r\n    from /home/davidr/.rvm/gems/ruby-2.2.0/gems/guard-2.11.1/bin/guard:11:in `<top (required)>'\r\n    from bin/guard:14:in `load'\r\n    from bin/guard:14:in `<main>'\r\n\r\nNot sure whether the problem lies in my script, in guard or in lumberjack, but I thought it was worth reporting it.\r\n\r\nThanks!!"},"comment":{"url":"https://api.github.com/repos/guard/guard/issues/comments/70058007","html_url":"https://github.com/guard/guard/issues/727#issuecomment-70058007","issue_url":"https://api.github.com/repos/guard/guard/issues/727","id":70058007,"user":{"login":"deivid-rodriguez","id":2887858,"avatar_url":"https://avatars.githubusercontent.com/u/2887858?v=3","gravatar_id":"","url":"https://api.github.com/users/deivid-rodriguez","html_url":"https://github.com/deivid-rodriguez","followers_url":"https://api.github.com/users/deivid-rodriguez/followers","following_url":"https://api.github.com/users/deivid-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/deivid-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/deivid-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deivid-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/deivid-rodriguez/orgs","repos_url":"https://api.github.com/users/deivid-rodriguez/repos","events_url":"https://api.github.com/users/deivid-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/deivid-rodriguez/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T09:11:40Z","updated_at":"2015-01-15T09:11:40Z","body":"@e2, it works great! Really appreciated!! :smile: \r\n\r\n"}}