Ubuntu, linux support #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I had some problems getting this to work on linux, so made some changes. It wasn't restarting the server at all.
-Sidney
That looks good. Think you can refactor the code in
unmanaged_pid
a bit more to remove the duplication? There isn't much difference between the two codepaths, so any refactoring would be very nice to have. :)ok, changed... you might be able to simply use lsof -i :#{port} as well on mac too..
Nope, no dice on
lsof -i
on Mac OS X. Still needlsof -P
...though you might want to tack on the-n
option to bothlsof
calls to get rid of rDNS on both systems and to speed it up (I decided to fire up a local Linux box to check that command. :) ).I was wrong,
lsof -i
is fine. That's what I get for doing this stuff too late at night. Try thelinux-support
branch. It incorporates your change and gets it working on both OSes:https://github.com/johnbintz/guard-rails/tree/linux-support