about summary refs log tree commit homepage
path: root/lib/yahns/server.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-04-06 05:15:29 +0000
committerEric Wong <yahns-public@yhbt.net>2017-04-06 06:47:36 +0000
commit0a6f03cde0a336597358668041fa8eb6f463bac5 (patch)
tree911aca11655925d6dbad41afb3af91dcdbd2ead9 /lib/yahns/server.rb
parentf76ff00466e679e367713bc6345d0a95191629cd (diff)
downloadyahns-0a6f03cde0a336597358668041fa8eb6f463bac5.tar.gz
Since the common case is still to run a single app inside yahns,
we can simplify setup a bit for systemd (and like) users by
allowing them to omit the "listen" directive when they are
running a single app in yahns.
Diffstat (limited to 'lib/yahns/server.rb')
-rw-r--r--lib/yahns/server.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb
index 43caae6..efd6f05 100644
--- a/lib/yahns/server.rb
+++ b/lib/yahns/server.rb
@@ -327,7 +327,9 @@ class Yahns::Server # :nodoc:
       opts = sock_opts(io)
       io = server_cast(io, opts)
       set_server_sockopt(io, opts)
-      @logger.info "inherited addr=#{sock_name(io)} fd=#{io.fileno}"
+      name = sock_name(io)
+      @logger.info "inherited addr=#{name} fd=#{io.fileno}"
+      @config.register_inherited(name)
       io
     end