I cannot bind to socket with `-l` option if I specify relative path.
Is it bug or absolute path is mandatory?

Tried 3.4.0 and 3.6.2 - both failed.

-- 
root@zenon:/var/www/test.st.std42.ru/SiteTarget/server# unicorn -l 
/var/www/test.st.std42.ru/SiteTarget/server/counter.sock
I, [2011-05-01T16:46:55.194425 #30369]  INFO -- : listening on 
addr=/var/www/test.st.std42.ru/SiteTarget/server/counter.sock fd=3
I, [2011-05-01T16:46:55.194867 #30369]  INFO -- : worker=0 spawning...
I, [2011-05-01T16:46:55.196281 #30376]  INFO -- : worker=0 spawned pid=30376
I, [2011-05-01T16:46:55.196533 #30376]  INFO -- : Refreshing Gem list
I, [2011-05-01T16:46:55.234478 #30369]  INFO -- : master process ready
I, [2011-05-01T16:46:56.166438 #30376]  INFO -- : worker=0 ready
I, [2011-05-01T16:46:58.303501 #30369]  INFO -- : reaped #<Process::Status: 
pid=30376,exited(0)> worker=0
I, [2011-05-01T16:46:58.303703 #30369]  INFO -- : master complete

root@zenon:/var/www/test.st.std42.ru/SiteTarget/server# unicorn -l 
./counter.sock
F, [2011-05-01T16:47:10.661755 #31915] FATAL -- : error adding listener 
addr=./counter.sock
/usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/socket_helper.rb:143:in 
`bind_listen': Don't know how to bind: ./counter.sock (ArgumentError)
        from 
/usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:248:in 
`listen'
        from 
/usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:145:in 
`start'
        from 
/usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:145:in 
`each'
        from 
/usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:145:in 
`start'
        from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn.rb:13:in 
`run'
        from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/bin/unicorn:120
        from /usr/bin/unicorn:19:in `load'
        from /usr/bin/unicorn:19
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to