X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FDaemon.pm;h=87a359e768d24b11698b0c239217d4324242dc38;hb=3e6f8bf5a205fa1e0ad9d52cd13fa91f20f79018;hp=0392d15f8578260403f89a5c3f28b481a65fced9;hpb=c38111d6f3877cf31d28b0a0339d063df0fa58f6;p=public-inbox.git diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index 0392d15f..87a359e7 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -66,6 +66,7 @@ sub accept_tls_opt ($) { my $host = ''; $path =~ s/\A([^:]+):// and $host = $1; $x->{$host} = $path; + check_absolute($k, $path) if $daemonize; } } my $ctx = IO::Socket::SSL::SSL_Context->new(%ctx_opt) or @@ -283,6 +284,8 @@ sub daemonize () { check_absolute('--stdout', $stdout); check_absolute('--stderr', $stderr); check_absolute('--pid-file', $pid_file); + check_absolute('--cert', $default_cert); + check_absolute('--key', $default_key); chdir '/' or die "chdir failed: $!"; }