brandonhilkert / sucker_punch

Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday.
MIT License
2.65k stars 114 forks source link

shutdown hijacking the system shutdown command #166

Closed fxn closed 8 years ago

fxn commented 8 years ago

Looks like installing sucker_punch hijacks the system shutdown command:

vagrant@rails-dev-box:~$ sudo shutdown -h now
/usr/lib/ruby/vendor_ruby/bundler.rb:198:in `rescue in root': Could not locate Gemfile or .bundle/ directory (Bundler::GemfileNotFound)
    from /usr/lib/ruby/vendor_ruby/bundler.rb:194:in `root'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:106:in `bundle_path'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:439:in `configure_gem_home'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:431:in `configure_gem_home_and_path'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:92:in `configure'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:153:in `definition'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:123:in `setup'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:134:in `require'
    from /var/lib/gems/2.3.0/gems/sucker_punch-2.0.0/bin/shutdown:4:in `<top (required)>'
    from /usr/local/bin/shutdown:23:in `load'
    from /usr/local/bin/shutdown:23:in `<main>'

Maybe change the commands' name?

brandonhilkert commented 8 years ago

Released 2.0.1

fxn commented 8 years ago

That was fast :heart:.